PHP 4.0 Bug #4711: phpinfo() has corrupted Zend-copyright iff auto_start=1
| From: | rogmann at math dot uni-duesseldorf dot de | Date: | Tue, 30 May 2000 21:30:16 +0000 |
| Subject: | PHP 4.0 Bug #4711: phpinfo() has corrupted Zend-copyright iff auto_start=1 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19817@lists.php.net to get a copy of this message | ||
From: rogmann@math.uni-duesseldorf.de
Operating system: SuSE 6.4 (2.2.14, Apache 1.3.12)
PHP version: 4.0.0 Release
PHP Bug Type: Session related
Bug description: phpinfo() has corrupted Zend-copyright iff auto_start=1
If session.auto_start=0 then phpinfo() shows
...
This program makes use of the Zend scripting language engine:
Zend Engine v1.00, Copyright (c) 1998-2000 Zend Technologies
...
But if session.auto_start=1 then phpinfo() gives
...
This program makes use of the Zend scripting language engine:
Z¬òÿ¿îw^]@Ze¬òÿ¿îw^]@en¬òÿ¿îw^]@nd¬òÿ¿îw^]@d E¬òÿ¿îw^]@En...
...
Everything in the output of phpinfo() is fine, just the
copyright-message and the Credits link are wrong.
This strange copyright-message seems to be generated
by the following rule:
write first letter of message;
do {
write eight bytes (e.g. ac f2 ff bf ee 77 1d 40);
write previous letter, perhaps combined with a
write next letter;
} until copyright-message has been written;
Fragments of the original copyright-message in phpinfo()-output:
Z Ze en nd d E En ng gi in ne e v v1 1. .0 00
0, , C Co op py yr ri ig gh ht t (
(c c) ) 1 19 99 98 8- -2 20 00 00 0 Z
Ze en nd d T Te ch hn no ol lo gi ie es s<br>
hex-dump of phpinfo()-output:
910: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 3c 2f align="right"></
920: 61 3e 0a 54 68 69 73 20 70 72 6f 67 72 61 6d 20 a>.This program
930: 6d 61 6b 65 73 20 75 73 65 20 6f 66 20 74 68 65 makes use of the
940: 20 5a 65 6e 64 20 73 63 72 69 70 74 69 6e 67 20 Zend scripting
950: 6c 61 6e 67 75 61 67 65 20 65 6e 67 69 6e 65 3a language engine:
960: 3c 42 52 3e 5a ac f2 ff bf ee 77 1d 40 5a 65 ac <BR>Z.....w.@Ze.
970: f2 ff bf ee 77 1d 40 65 6e ac f2 ff bf ee 77 1d ....w.@en.....w.
980: 40 6e 64 ac f2 ff bf ee 77 1d 40 64 26 6e 62 73 @nd.....w.@d&nbs
990: 70 3b 45 ac f2 ff bf ee 77 1d 40 45 6e ac f2 ff p;E.....w.@En...
9a0: bf ee 77 1d 40 6e 67 ac f2 ff bf ee 77 1d 40 67 ..w.@ng.....w.@g
9b0: 69 ac f2 ff bf ee 77 1d 40 69 6e ac f2 ff bf ee i.....w.@in.....
9c0: 77 1d 40 6e 65 ac f2 ff bf ee 77 1d 40 65 26 6e w.@ne.....w.@e&n
9d0: 62 73 70 3b 76 ac f2 ff bf ee 77 1d 40 76 31 ac bsp;v.....w.@v1.
9e0: f2 ff bf ee 77 1d 40 31 2e ac f2 ff bf ee 77 1d ....w.@1......w.
...
b10: f2 ff bf ee 77 1d 40 6e 64 ac f2 ff bf ee 77 1d ....w.@nd.....w.
b20: 40 64 26 6e 62 73 70 3b 54 ac f2 ff bf ee 77 1d @d T.....w.
b30: 40 54 65 ac f2 ff bf ee 77 1d 40 65 63 ac f2 ff @Te.....w.@ec...
b40: bf ee 77 1d 40 63 68 ac f2 ff bf ee 77 1d 40 68 ..w.@ch.....w.@h
b50: 6e ac f2 ff bf ee 77 1d 40 6e 6f ac f2 ff bf ee n.....w.@no.....
b60: 77 1d 40 6f 6c ac f2 ff bf ee 77 1d 40 6c 6f ac w.@ol.....w.@lo.
b70: f2 ff bf ee 77 1d 40 6f 67 ac f2 ff bf ee 77 1d ....w.@og.....w.
b80: 40 67 69 ac f2 ff bf ee 77 1d 40 69 65 ac f2 ff @gi.....w.@ie...
b90: bf ee 77 1d 40 65 73 ac f2 ff bf ee 77 1d 40 73 ..w.@es.....w.@s
ba0: 3c 62 72 3e 3c 2f 42 52 3e 0a 3c 2f 54 44 3e 3c <br></BR>.</TD><
bb0: 2f 54 52 3e 0a 3c 2f 54 41 42 4c 45 3e 3c 42 52 /TR>.</TABLE><BR
Is there a connection with the wrong Credits-link?
Credits link if auto_start=0:
<a href="/test.phtml?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000"><h1>PHP 4.0
Credits</h1></a>
Credits link if auto_start=1:
<a
href="&PHPSESSID=c788dfe450a1f071dba2f7270c4d80af"/test.phtml?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000"><h1>PHP
4.0 Credits</h1></a>
Compile-options:
./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-xml --with-gd=/usr --enable-trans-sid
--prefix=/usr/local/php-4.0.0
Part of used php.ini:
[Session]
session.save_handler = files
session.save_path = /tmp/session
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 1