免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2120 | 回复: 1
打印 上一主题 下一主题

[FreeBSD] zlib和zend冲突吗 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-24 18:46 |只看该作者 |倒序浏览
有程序生成静态过程需要gzip支持,于是在php.ini中开始了zlib.output_compression = On,但开启这项后,另外的zend过的代码不能运行了,输入地址提示文件下载,
再zlib.output_compression = Off,静态化又不成了,这杂办?

是配置搞错了吗?
附zlib.output_compression = On    php.ini


  1. [PHP]

  2. ;;;;;;;;;;;;;;;;;;;;
  3. ; Language Options ;
  4. ;;;;;;;;;;;;;;;;;;;;

  5. ; Enable the PHP scripting language engine under Apache.
  6. engine = On

  7. ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
  8. zend.ze1_compatibility_mode = Off

  9. ; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
  10. ; NOTE: Using short tags should be avoided when developing applications or
  11. ; libraries that are meant for redistribution, or deployment on PHP
  12. ; servers which are not under your control, because short tags may not
  13. ; be supported on the target server. For portable, redistributable code,
  14. ; be sure not to use short tags.
  15. short_open_tag = On

  16. ; Allow ASP-style <% %> tags.
  17. asp_tags = Off

  18. ; The number of significant digits displayed in floating point numbers.
  19. precision    =  12

  20. ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
  21. y2k_compliance = Off

  22. ; Output buffering allows you to send header lines (including cookies) even
  23. ; after you send body content, at the price of slowing PHP's output layer a
  24. ; bit.  You can enable output buffering during runtime by calling the output
  25. ; buffering functions.  You can also enable output buffering for all files by
  26. ; setting this directive to On.  If you wish to limit the size of the buffer
  27. ; to a certain size - you can use a maximum number of bytes instead of 'On', as
  28. ; a value for this directive (e.g., output_buffering=4096).
  29. output_buffering = Off

  30. ; You can redirect all of the output of your scripts to a function.  For
  31. ; example, if you set output_handler to "mb_output_handler", character
  32. ; encoding will be transparently converted to the specified encoding.
  33. ; Setting any output handler automatically turns on output buffering.
  34. ; Note: People who wrote portable scripts should not depend on this ini
  35. ;       directive. Instead, explicitly set the output handler using ob_start().
  36. ;       Using this ini directive may cause problems unless you know what script
  37. ;       is doing.
  38. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
  39. ;       and you cannot use both "ob_gzhandler" and "zlib.output_compression".
  40. ; Note: output_handler must be empty if this is set 'On' !!!!
  41. ;       Instead you must use zlib.output_handler.
  42. ;output_handler =

  43. ; Transparent output compression using the zlib library
  44. ; Valid values for this option are 'off', 'on', or a specific buffer size
  45. ; to be used for compression (default is 4KB)
  46. ; Note: Resulting chunk size may vary due to nature of compression. PHP
  47. ;       outputs chunks that are few hundreds bytes each as a result of
  48. ;       compression. If you prefer a larger chunk size for better
  49. ;       performance, enable output_buffering in addition.
  50. ; Note: You need to use zlib.output_handler instead of the standard
  51. ;       output_handler, or otherwise the output will be corrupted.
  52. zlib.output_compression = On
  53. ;zlib.output_compression_level = -1

  54. ; You cannot specify additional output handlers if zlib.output_compression
  55. ; is activated here. This setting does the same as output_handler but in
  56. ; a different order.
  57. ;zlib.output_handler =

  58. ; Implicit flush tells PHP to tell the output layer to flush itself
  59. ; automatically after every output block.  This is equivalent to calling the
  60. ; PHP function flush() after each and every call to print() or echo() and each
  61. ; and every HTML block.  Turning this option on has serious performance
  62. ; implications and is generally recommended for debugging purposes only.
  63. implicit_flush = Off

  64. ; The unserialize callback function will be called (with the undefined class'
  65. ; name as parameter), if the unserializer finds an undefined class
  66. ; which should be instantiated.
  67. ; A warning appears if the specified function is not defined, or if the
  68. ; function doesn't include/implement the missing class.
  69. ; So only set this entry, if you really want to implement such a
  70. ; callback-function.
  71. unserialize_callback_func=

  72. ; When floats & doubles are serialized store serialize_precision significant
  73. ; digits after the floating point. The default value ensures that when floats
  74. ; are decoded with unserialize, the data will remain the same.
  75. serialize_precision = 100

  76. ; Whether to enable the ability to force arguments to be passed by reference
  77. ; at function call time.  This method is deprecated and is likely to be
  78. ; unsupported in future versions of PHP/Zend.  The encouraged method of
  79. ; specifying which arguments should be passed by reference is in the function
  80. ; declaration.  You're encouraged to try and turn this option Off and make
  81. ; sure your scripts work properly with it in order to ensure they will work
  82. ; with future versions of the language (you will receive a warning each time
  83. ; you use this feature, and the argument will be passed by value instead of by
  84. ; reference).
  85. allow_call_time_pass_reference = On

  86. [Zend]
  87. zend_optimizer.optimization_level=15
  88. zend_extension_manager.optimizer="/usr/local/lib/php/20060613/Optimizer"
  89. zend_extension_manager.optimizer_ts="/usr/local/lib/php/20060613/Optimizer_TS"
  90. zend_extension="/usr/local/lib/php/20060613/ZendExtensionManager.so"
  91. zend_extension_ts="/usr/local/lib/php/20060613/ZendExtensionManager_TS.so"


复制代码

论坛徽章:
0
2 [报告]
发表于 2008-10-24 18:54 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP