|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13886 PHP crashes on calling a shell based program without a total search path
Submitted: 2001-10-31 07:14 UTC Modified: 2001-11-01 03:12 UTC
From: edo at domis dot de Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.6 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: edo at domis dot de
New email:
PHP Version: OS:


 [2001-10-31 07:14 UTC] edo at domis dot de
Whe I execute the script below direct from the command line (e.g.c:\>php crash.php), php crashes.
1.) the command "echo `perl -h`;" is executed, it displays the 'help desk' from perl correctly
2.) the command "echo `c:\\ /C echo hallo`;" is executed this runs and display "hello", but
3.) the command "echo `echo hallo`;" displays "...Warning unable to execute..." but shows the windows Application crash Dialog, after closing this Dialog the script terminate, without execute more lines.

Best regards
Ekkehard Domning
-=-=-=- Script contents -=-=-=-
// This works
echo `perl -h`;
// This too
echo `c:\\ /C echo hallo`;

// This crashes
echo `echo hallo`;

-=-=-=- Script contents end-=-=-=-
-=-=-=- Script Output -=-=-=-
<b>Warning</b>:  Unable to execute 'echo hallo' in <b>crash.php</b> on line <b>10</b><br>
-=-=-=- Script Output end-=-=-=-

-=-=-=- Windows Application Error Dialogbox  -=-=-=-
PHP verursachte einen Fehler durch eine ung?ltige Seite
in Modul KERNEL32.DLL bei 0177:bff7b983.
EAX=00000020 CS=0177 EIP=bff7b983 EFLGS=00010202
EBX=7802347e SS=017f ESP=0063f7e4 EBP=0063f820
ECX=7803ad88 DS=017f ESI=00000020 FS=4caf
EDX=00790550 ES=017f EDI=00000000 GS=0000
Bytes bei CS:EIP:
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8 
0065d800 780101e8 00000020 780234a9 00000000 00000000 0065d800 7802347e 78001409 00001010 0063f614 0063fe28 7800e492 780342a8 ffffffff 00000000 
-=-=-=- Windows Application Error Dialogbox  end-=-=-=-


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-31 18:45 UTC]
Does this happen with latest CVS snapshot build from ?


 [2001-11-01 02:45 UTC] edo at domis dot de
It seems to work with 4.0.8! All three calls finished, without crash and with the correct responese.
 [2001-11-01 03:12 UTC]
Fixed -> closed. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 08:01:27 2024 UTC