PHP 4.0 Bug #6144: Crash when file not found!
| From: | patrick at music-images dot nl | Date: | Mon, 14 Aug 2000 10:01:27 +0000 |
| Subject: | PHP 4.0 Bug #6144: Crash when file not found! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28793@lists.php.net to get a copy of this message | ||
From: patrick@music-images.nl
Operating system: WINDOWS N.T.
PHP version: 4.0.0
PHP Bug Type: Reproduceable crash
Bug description: Crash when file not found!
When trying to overwrite TRANSLATED_PATH in order to get php accepting scripts from stdin (but more
overriding of environment variables was needed) php crashed because he couldn't find the file
necessary. PHP3 generates the message file not found.
I would wanted that if not path information is found cgi mode would be off and he would accept
script code from stdin after postdata, but that is inpossible because the variable REQUEST_METHOD is
used as an CGI check.
ie. I was forced to remove all variables making php detect it's run as a cgi including
REQUEST_METHOD before php accepted script from stdin (which I redirected). But I also wanted
REQUEST_METHOD to exist, which conflicted. (That makes him probably force to look at a file which
doesn't exist?)
Crash:
REAL_PHP caused an invalid page fault in
module PHP4TS.DLL at 0177:1007d14e.
Registers:
EAX=00000000 CS=0177 EIP=1007d14e EFLGS=00010246
EBX=007607f0 SS=017f ESP=0063fd28 EBP=0063fdc4
ECX=ffffffff DS=017f ESI=00000000 FS=4387
EDX=7eff5344 ES=017f EDI=00000000 GS=0000
Bytes at CS:EIP:
f2 ae a1 20 04 0e 10 f7 d1 49 8b f9 47 85 c0 74
Stack dump:
00000001 00760580 007607f0 0040190e 00000000 004030e4 00000000 817ad8b4 00530000 00000000 00000000
00000004 00000000 00000000 7800cc8c 7803b3f0