#48597 [Com]: Unclosed array keys break space escaping in $_GET/POST/REQUEST

2009-10-23 Thread e dot ehritt at web dot de
 ID:   48597
 Comment by:   e dot ehritt at web dot de
 Reported By:  crmalibu at gmail dot com
 Status:   Open
 Bug Type: *General Issues
 Operating System: *
 PHP Version:  5.*, 6CVS (2009-07-01)
 New Comment:

I left a report too. http://bugs.php.net/bug.php?id=49975

If I follow the documentation, a key of an array is a string. That
means, a key "abc[des]" is possible. (e. g. $a=array("abc[des]"=>'d');
)






$_POST=array('a'=>array('b[c]'=>'d'));

Both should result in even structure, but it does not. There are no
reason, why incoming datas could not follow the same rules as data in a
script.


Previous Comments:


[2009-10-14 02:42:39] chrisstocktonaz at gmail dot com

Sorry for extra noise.. it seems my patch mixed the case of something
like: 







Expected result:

Array
(
[goodvar___] => 
[goodarray] => Array
(
[foo] => 
)

[badvar_] => 
)

Actual result:
--
Array
(
[goodvar___] => 
[goodarray] => Array
(
[foo] => 
)

[badvar_ . [] => 
)





-- 
Edit this bug report at http://bugs.php.net/?id=48597&edit=1



#49975 [NEW]: malformation of request data

2009-10-23 Thread e dot ehritt at web dot de
From: e dot ehritt at web dot de
Operating system: 
PHP version:  5.3.1RC2
PHP Bug Type: *General Issues
Bug description:  malformation of request data

Description:

It occurs in all current versions
Incoming request data are malformed:


POST / HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: 17

a%5Bb%5Bc%5D%5D=d


Reproduce code:
---






#
array('b[c]'=>'d'));
print_r($_POST);
print_r($a);
?>

Expected result:

Array
(
[a] => Array
(
[b[c]] => d
)

)
Array
(
[a] => Array
(
[b[c]] => d
)

)

Actual result:
--
Array
(
[a] => Array
(
[b[c] => d
)

)
Array
(
[a] => Array
(
[b[c]] => d
)

)

So, I miss "]" in POST data.

-- 
Edit bug report at http://bugs.php.net/?id=49975&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49975&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49975&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49975&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49975&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49975&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49975&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=49975&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=49975&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=49975&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=49975&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=49975&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=49975&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=49975&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49975&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=49975&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=49975&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=49975&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=49975&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=49975&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=49975&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=49975&r=mysqlcfg



#49248 [NEW]: make error

2009-08-13 Thread e dot ehritt at web dot de
From: e dot ehritt at web dot de
Operating system: Linux/2.6.30.4 x86_64
PHP version:  5.3SVN-2009-08-14 (snap)
PHP Bug Type: Compile Failure
Bug description:  make error

Description:

$ export CFLAGS="-march=athlon64 -O3 -pipe -fstack-protector
-fstack-protector-all" export EXTENSION_DIR="/home/eddi/opt/php/5.3.0/lib"
./configure --prefix=/home/eddi/opt/php/5.3.0 --mandir=/home/eddi/opt/man
--build=x86_64-pc-linux-gnu --with-config-file-path=/home/eddi/opt/conf
--with-zend-vm=GOTO --disable-all --with-bz2=shared --with-curl=shared
--with-curlwrappers --with-gd=shared --with-gettext=shared
--with-iconv=shared --with-openssl=shared --with-regex=shared
--with-xmlrpc=shared --with-xsl=shared --with-zlib=shared
--enable-bcmath=shared --enable-calendar=shared --enable-ctype=shared
--enable-dom=shared --enable-exif=shared --enable-fileinfo=shared
--enable-filter=shared --enable-ftp=shared --enable-hash=shared
--enable-libxml=shared --enable-pcntl=shared --enable-phar=shared
--enable-posix=shared --enable-shmop=shared --enable-simplexml=shared
--enable-soap=shared --enable-sockets=shared --enable-sysvmsg=shared
--enable-sysvsem=shared --enable-sysvshm=shared --enable-tokenizer=shared
--enable-wddx=shared --enable-xml=shared --enable-xmlreader=shared
--enable-xmlwriter=shared --enable-zip=shared --enable-sigchild
--enable-cgi --disable-short-tags


$ make > /dev/null

/home/eddi/opt/src/php5.3-200908132230/ext/date/php_date.c: In function
'date_format':
/home/eddi/opt/src/php5.3-200908132230/ext/date/php_date.c:1058: warning:
incompatible implicit declaration of built-in function 'llabs'
/home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c: In function
'_php_stream_cast':
/home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c:222: warning:
cast to pointer from integer of different size
/home/eddi/opt/src/php5.3-200908132230/main/streams/cast.c:225: warning:
cast to pointer from integer of different size
/home/eddi/opt/src/php5.3-200908132230/Zend/zend_objects.c: In function
'zend_objects_destroy_object':
/home/eddi/opt/src/php5.3-200908132230/Zend/zend_objects.c:95: warning:
assignment discards qualifiers from pointer target type
main/.libs/SAPI.o: In function `sapi_send_headers':
SAPI.c:(.text+0x1fca): undefined reference to `zlib_globals'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1



Reproduce code:
---
$ gcc -v

Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3
p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)


$ ld -v

GNU ld (GNU Binutils) 2.18




-- 
Edit bug report at http://bugs.php.net/?id=49248&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49248&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49248&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49248&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49248&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49248&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49248&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=49248&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=49248&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=49248&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=49248&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=49248&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=49248&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=49248&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id

#45203 [WFx->Opn]: missing HTTP Vary header

2009-05-26 Thread e dot ehritt at web dot de
 ID:   45203
 User updated by:  e dot ehritt at web dot de
 Reported By:  e dot ehritt at web dot de
-Status:   Wont fix
+Status:   Open
 Bug Type: Zlib Related
 Operating System: other
 PHP Version:  5.2.6
 New Comment:

It works now. Thanks, but why you fix it this way?

zlib.c

Use php_enable_output_compression() as standard out put only and put
all HTTP staff into it call it from PHP_FUNCTION(ob_gzhandler). Status
now is functionally a dupe of code lines:

970 -> 987 and 1059 -> 1075


Previous Comments:


[2008-06-11 17:35:44] e dot ehritt at web dot de

Last time when I brought you a patch the result was no fixing. Your
reaction: Deleting the bug report and avoiding the problem own year
later.

And now I, sorry _I_, have to turn to mike to help you again? I hope
you are able to pick up my e-mail address form the messages, if you are
interested getting a fix.

All is said.



[2008-06-10 23:35:06] j...@php.net

Feel free to provide a patch. Otherwise -> Wont fix. 
Do not reopen this before discussing with m...@php.net about it..



[2008-06-10 10:54:07] e dot ehritt at web dot de

May you have kindness and have a look at source code? Thanks!

Now hander ob_gzhander sends the HTTP header. It shows you: It is
possible to merge into 5.2. You are able to do so as well.



[2008-06-09 08:47:21] j...@php.net

And as was mentioned in bug #40325, it was fixed in HEAD (as in: PHP 6)
but the fix was not possible to be merged to 5.2 branch.



[2008-06-07 17:07:16] e dot ehritt at web dot de

Description:

If configuration of zlib.output_compression
zlib.output_compression_level is seeded in a php.ini, not at all there
are a header "Vary". RFC 2616 section 14.44 requires own.

It is the same problem as discribe in http://bugs.php.net/40325
ob_start('ob_gzhander') is not the only way to start output
compression.






-- 
Edit this bug report at http://bugs.php.net/?id=45203&edit=1



#45202 [NoF->Opn]: zlib.output_compression can not be set with ini_set()

2009-05-25 Thread e dot ehritt at web dot de
 ID:   45202
 User updated by:  e dot ehritt at web dot de
 Reported By:  e dot ehritt at web dot de
-Status:   No Feedback
+Status:   Open
 Bug Type: Zlib Related
 Operating System: Linux 2.6.24.7 i686
 PHP Version:  5.2.6
 New Comment:

Bug is reproducible on different system and other versions
(x86_64-pc-linux-gnu 2.6.29.3 / php5.3-200905242230 / httpd-2.2.11)
,changes are undiscernible.

Furthermore I starded a comparing test and set adequate directives in
my php.in. In Konqueror (KDE-Browser) I saw that:

‹
¬WëoÛ6ÿ޿⪢C[XOÇiý\ÛA8‰{m·/-щ(*¶ìßQ²35Qœ4›à‡H÷¾#{¯Ç—£ÅŸ³
D*‰aöÇçéÙÓ¶¿6G¶=^ŒáÛéâ| ®åÀBž1Å'±mO.0ÀÞè­®©*«V cðª§W½ˆ’
™ÚÆÔ6¥}Cэ²ý,C¢¥¶p»$þu(eÎÓ±x³*ž.ìÇnñtÿ...@ø¹øõàv%¸2w$añ¶Êbft²Ò§’ÂmbdÈxœtӅŸhÁe–Ÿ")éČ_Ãm•g»Ý-¯P_H¢5ì
œváq©5T$n¨„Û{‘œJä£*²D£Ü.…Ä9 “4£Ø¿!‰åS®î€HÌBÄ(ç*«; (õ4cºR
¹Ýý”dat7WÅÒ´U¤aò‚×,I…T„«.
à…ù‘²½nºLÄ,¸ótiæ�...@}>¶ÞvÍ¡˜Oâ=ð’dtg‡ÈÝy°$w[Î[=ëý<ëµô¬•þl‹½ü´6Œ||t8kZa)â
&²¬¨¢ï?âæQ)4D
½<¸¡ªháÁ–„h§xug³÷Šw´#ò...@e8vŠ
8À±º¢¶®<`ܳ‹¤ÆäVL᥌¯Ä»÷=»œè%Tà$Áœ¿ºü|¹˜ˆ‚áÄU߸¸<»O¾5..O.§Ó˯ø2¼ž}™`zö®nètôv~L²¬o”ñ¨ëKô¥À}ÃAlÇ)
ÆþÑ4 Pºo Ò¹ÜCDÆ
§48HÒN(•vl{½^[¨„Å©²‘D¶‚žI¿o؊fÊèŠä±ÒÄ¿÷g§³I»uüé¤ydŽ¼O¦ëž9üxÜ6g8tw8:9ò
1ªÔ0¡(•$xݽx©1Ы_¨Ì...@ËjzÎÕ¨‰ÕãÍᢼ6j?²xÕÚzk‰@/°…¶Àž15óm¦h%‡WnŒÁ”ñs›J]Î<ëØòÚðÆmÃ"§pN¶€¯ŽÓiz£Œ&óxX4aóéøûñT%~ÀósÎâ
ÆDÑ:¾Ûk•hN³Óso$øŠ…
9Öû‘Hƒ:XøíÓlw-ÛßS—°[0Ml+¶éۑH¨Mт¶H•®¶H·aO¿ÔjôK…ÍÔ7cm03äù=º5S‘IÒMæÝÇ&Ø"j{–g¹®½dÜÖduÛK¡Í‹©™tè=$½þÔ¾Ì'Ü
˜¬îMóeÌüïºcßÛ°L‡¡ýÊAÌË8ÎÎêŒ?,Å(ràý#åA´/LªœÄ0f’úJÈ-ÌóT·¡:pʵ
Áób¤hÆp‚ö€w:ågïa†­C®1òa.SA”¤†ÙóÐíHO؉]˜e€ÞÄö$Aç{yƒb»öwöϊë³ւ§Df4x>½j¯3Ӆð‘
ŠpäzXž˜l°Õµ´¦í¸î0Q,#‡q^TÖ¾º™Ý!6ó_Qò æs!Çt™‡Cqqxû*
`NVTm_œ¥…±Îi¢3þœpÞŠ—ba·fË-všdWêžÀ;›Ýÿç2tEC†
W"öá\¡Õ’ÚLÅti©Ö€0ËD¼óà‰çõ/lYYfýˆÙàٌK¦0þ5UåõNëT+…ò‘QèÎ6ú5üU>Xþp\‹ž)‰ÇK
å6°)6¦²2ŽÅº2ÖéwEÂL›€ëۅõ¡xÍò„âý/]Qί
íb}€ÿóôTþѓä<ó¢£dëGÉ"²ãÊYòÕB7ƒTŠP¢Árõ9Ï(ˆ¶
ýÜG³)Ô¦„‡9¦L8^iç ÿÿ´YaoÚ<þ+Ñ>L[µël«ä7Do“0c:MÓ¥‚ßbJ
/Û¯ßÙN`ë’uݗrgÌsÉÝùî9W;Cnzš^g«·zYËwŽ¤>/´‚Åê«4´úlò\­n·cËB£ÕƒH¤¾O2måH,æùGëlïT³§Î;ç§jÚmÜu¤§Ú6j£®ý
¿9ovpKN)ºDbHC¾ÉÝÖDú`ä§]|ëHÛznYŠév‘Dš¢9sÍZžœý¬çÈÎ#ñœ"...@9‰:Þ«õÙA
A¬N[•« tÓ%´m8u11Úgè ðž²Y3~—¤_ŽãD¶‘>î
K*©ž9€,€Í^÷Ãæ†#íÊX“ÁýÏdB<&¥Mf|ª¨49•*¨µüLv+B´y5![™”¡ªEzºRꂸ¢e<㥦ÉLl¸¤¾Nþ_óܴӿҝÔ=ÇüLOO*
Ik` ‘ñ9ò°«’W#5Â
˜ya`B:4Š±±±O\ó´×Øf냰\ç+ÙTêq冊–Dè¡ÑÈsÄÆÔèºw\Ϋwúhñ³z€áûˆÌxu˜W
ŸüA0rÔïSJ¯×ªõûaH)Ñ©`
”ø!#7ßñØ'‹h²ÇºÚûÄ÷‚ÇàŸ#L=8{Þ%)‹VÉÖýq¤–3ËbñºÙ~íGp#ѧÈ¡Ÿ»^£õ²f^А…Ø\üe¨¢ä،Xä6û&w_5K
€~ŠFŒ–ñß:½ÅóŒ©ñÎP‡¬V>”æÂѨÿʤ­AνôF¬—ÅŒùBþ7.[Åéû'ŽY1²&+¹Äþ†wý
ÿÿÌZMOÃ0ý7ÜÆ~ '˜¸Ñ#7+KÓQ”ÅQ>èöï‰Û&”µ¥Ê"ŽK;¿$¶›g¿ïâ–-‡Ê°Ã‘­ç;z…T
gP®7óȹЮÐ6ϊ#y-?‰ »wê±»pðÝ
ZK?0F»ŸâöO¤c>!¬¢X”o›Šº‹¢Þ<%ÛÖÕKµ½dg’ÿwûhŠWZ¨[E—bqbÊK§ûÏÊK&%vHpTCëð
”ËMpŽâ©²óUM
N‚x#¡A-Tv«­âÒ×ÉÙ6ÍÔèUË;[Ш=}6À°.üÅ3©ùP̬ЬoñÝ·J{—°rǎúaz|‘}ô.;€|;âÓ!D꾉4OS–¾1HB“>Z—+2ɬ6¢ÜBö;˙¾9PddÀ‡S²5øè:ã٘v¤UìÙRñ3v‹òÅu”:¡iÚͼi¯ñjh�...@ԒaƒÆfj£Ñ¨uÌ8¯'Œ¯ó
r0ˆby8Q!„b)¨"ˤw¨e&w÷î?ÿƒì|û5ô˜!ë!‡BÑåL4®Þ©u€ª§’˜dëRUœý$Ý䊵ñ)NóÛÅuÄ­l÷Ûµÿ¸2›/

That means, PHP do not respect RFC 2616. Strict standard conform
browser needs a response header Content-Encoding and Vary
ob_gzhander sends the HTTP headers. It shows you: It is
possible to merge into version 5.2 and later. You are able to do so as
well.


Previous Comments:


[2009-05-01 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-04-23 16:45:25] j...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2009-04-21 10:04:24] dypa at bk dot ru

not reproduced in win 5.2.9-2
not reproduced in 5.2.6-1+lenny2



[2008-06-07 16:38:11] e dot ehritt at web dot de

Description:

Configure Command

./configure --prefix=/opt/php/526 --mandir=/opt/php/man --disable-all
--disable-cgi --disable-short-tags --enable-memory-limit
--with-apxs2=/opt/apache/228/bin/apxs --with-config-file-path=/opt/conf
--with-zend-vm=GOTO 

Server API  Apache 2.0 Handler
PHP API 20041225
PHP Extension   20060613
Zend Extension  220060519
Debug Build no
Thread Safety   enabled
Zend Memory Manager enabled
IPv6 Supportenabled



#45203 [WFx]: missing HTTP Vary header

2008-06-11 Thread e dot ehritt at web dot de
 ID:   45203
 User updated by:  e dot ehritt at web dot de
 Reported By:  e dot ehritt at web dot de
 Status:   Wont fix
 Bug Type: Zlib Related
 Operating System: other
 PHP Version:  5.2.6
 New Comment:

Last time when I brought you a patch the result was no fixing. Your
reaction: Deleting the bug report and avoiding the problem own year
later.

And now I, sorry _I_, have to turn to mike to help you again? I hope
you are able to pick up my e-mail address form the messages, if you are
interested getting a fix.

All is said.


Previous Comments:


[2008-06-10 23:35:06] [EMAIL PROTECTED]

Feel free to provide a patch. Otherwise -> Wont fix. 
Do not reopen this before discussing with [EMAIL PROTECTED] about it..



[2008-06-10 10:54:07] e dot ehritt at web dot de

May you have kindness and have a look at source code? Thanks!

Now hander ob_gzhander sends the HTTP header. It shows you: It is
possible to merge into 5.2. You are able to do so as well.



[2008-06-09 08:47:21] [EMAIL PROTECTED]

And as was mentioned in bug #40325, it was fixed in HEAD (as in: PHP 6)
but the fix was not possible to be merged to 5.2 branch.



[2008-06-07 17:07:16] e dot ehritt at web dot de

Description:

If configuration of zlib.output_compression
zlib.output_compression_level is seeded in a php.ini, not at all there
are a header "Vary". RFC 2616 section 14.44 requires own.

It is the same problem as discribe in http://bugs.php.net/40325
ob_start('ob_gzhander') is not the only way to start output
compression.






-- 
Edit this bug report at http://bugs.php.net/?id=45203&edit=1



#45203 [Csd->Opn]: missing HTTP Vary header

2008-06-10 Thread e dot ehritt at web dot de
 ID:   45203
 User updated by:  e dot ehritt at web dot de
 Reported By:  e dot ehritt at web dot de
-Status:   Closed
+Status:   Open
 Bug Type: Zlib Related
 Operating System: other
 PHP Version:  5.2.6
 New Comment:

May you have kindness and have a look at source code? Thanks!

Now hander ob_gzhander sends the HTTP header. It shows you: It is
possible to merge into 5.2. You are able to do so as well.


Previous Comments:


[2008-06-09 08:47:21] [EMAIL PROTECTED]

And as was mentioned in bug #40325, it was fixed in HEAD (as in: PHP 6)
but the fix was not possible to be merged to 5.2 branch.



[2008-06-07 17:07:16] e dot ehritt at web dot de

Description:

If configuration of zlib.output_compression
zlib.output_compression_level is seeded in a php.ini, not at all there
are a header "Vary". RFC 2616 section 14.44 requires own.

It is the same problem as discribe in http://bugs.php.net/40325
ob_start('ob_gzhander') is not the only way to start output
compression.






-- 
Edit this bug report at http://bugs.php.net/?id=45203&edit=1



#45203 [NEW]: missing HTTP Vary header

2008-06-07 Thread e dot ehritt at web dot de
From: e dot ehritt at web dot de
Operating system: other
PHP version:  5.2.6
PHP Bug Type: Zlib Related
Bug description:  missing HTTP Vary header

Description:

If configuration of zlib.output_compression
zlib.output_compression_level is seeded in a php.ini, not at all there are
a header "Vary". RFC 2616 section 14.44 requires own.

It is the same problem as discribe in http://bugs.php.net/40325
ob_start('ob_gzhander') is not the only way to start output compression.


-- 
Edit bug report at http://bugs.php.net/?id=45203&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45203&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45203&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45203&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45203&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45203&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45203&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45203&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45203&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45203&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45203&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45203&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45203&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45203&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45203&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45203&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45203&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45203&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45203&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45203&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45203&r=mysqlcfg



#45202 [NEW]: configuration failed

2008-06-07 Thread e dot ehritt at web dot de
From: e dot ehritt at web dot de
Operating system: Linux 2.6.24.7 i686
PHP version:  5.2.6
PHP Bug Type: Zlib Related
Bug description:  configuration failed

Description:

Configure Command

./configure --prefix=/opt/php/526 --mandir=/opt/php/man --disable-all
--disable-cgi --disable-short-tags --enable-memory-limit
--with-apxs2=/opt/apache/228/bin/apxs --with-config-file-path=/opt/conf
--with-zend-vm=GOTO 

Server API  Apache 2.0 Handler
PHP API 20041225
PHP Extension   20060613
Zend Extension  220060519
Debug Build no
Thread Safety   enabled
Zend Memory Manager enabled
IPv6 Supportenabled


Relevant Part of phpinfo()

ZLib Support enabled 
Stream Wrapper   support   compress.zlib:// 
Stream Filtersupport   zlib.inflate, zlib.deflate 
Compiled Version 1.2.3 
Linked Version   1.2.3 

Directive  LocalMaster
zlib.output_compressionOn   Off
zlib.output_compression_level  9-1
zlib.output_handlerno value no value



### Description ###

If configuration of zlib.output_compression zlib.output_compression_level
is seeded in a php.ini, there are no problems. Output is managed as
configured.
If configuration of zlib.output_compression zlib.output_compression_level
is determined by ini_set(), phpinfo() adopt it but not at all output is
compressed.

As you can see other Modules are not enabled. Additional zlib extension
was built by phpize.

Reproduce code:
---




-- 
Edit bug report at http://bugs.php.net/?id=45202&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45202&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45202&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45202&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45202&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45202&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45202&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45202&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45202&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45202&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45202&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45202&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45202&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45202&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45202&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45202&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45202&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45202&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45202&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45202&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45202&r=mysqlcfg