php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13045 PHP crashes when it can't find the *.exe or other binary specified within ``'s
Submitted: 2001-08-29 17:10 UTC Modified: 2001-08-30 09:03 UTC
From: saturn at dotslashsaturn dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Windows ME (kernel 4.9.3000)
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: saturn at dotslashsaturn dot org
New email:
PHP Version: OS:

 

 [2001-08-29 17:10 UTC] saturn at dotslashsaturn dot org
using `proname -option -etc` (where progname is any executable, such as PING) in PHP, you can run a program and parse it's output with a PHP script

on Windows 9x, when the program isn't found (either a bad link or it just plain doesn't exist), PHP crashes.

I can reproduce this error on Windows ME, kernel 4.9.3000 (the final release of win ME -- not a beta or anything goofy like that)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-29 17:11 UTC] saturn at dotslashsaturn dot org
also note: using Apache 1.3.20 Win32
 [2001-08-30 06:48 UTC] sander@php.net
Reproduced with Windows 2000 Professional, PHP-4.0.6 and Apache 1.3.20 (running PHP as an Apache module).

A simple script:
<?php
echo `c:\crashtest.exe`;
?>
If you run PHP from te commandline, the following output IS generated:
Warning: Unable to execute 'c:\crashtest.exe' in crashtest.php on line 2

Changing the backslash to \\ or / has no effect.

On Linux (tested with Debian, Potato), trying to execute a non-existant file produces no output, and no error... strange...
 [2001-08-30 09:03 UTC] dbeu@php.net
this should be fixed in 4.0.7rc1, please try http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip
reopen if the problem still occurs.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 11:01:37 2025 UTC