#30425 [NEW]: Bad URL with include causes apache spawns, leading to crash

From: Date: Wed, 13 Oct 2004 19:52:13 +0000
Subject: #30425 [NEW]: Bad URL with include causes apache spawns, leading to crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67547@lists.php.net to get a copy of this message
From: noel at noeljackson dot com Operating system: FreeBSD PHP version: Irrelevant PHP Bug Type: Reproducible crash Bug description: Bad URL with include causes apache spawns, leading to crash Description: ------------ When using the include() function that includes an improper URL AND a variable, PHP does not return an error, instead spawns instance after instance of httpd creating server hault. The include function that produced this is something like the following... <?php require('http://noeljackson/?template=/templates/ lastFive.tmpl.php?start='.$_GET['start']); ?> The problem with the URL is a & after .tmpl.php instead of a & Try it in a PHP document, ANY, and it will create many, many, many instances of httpd, resulting eventually in a server hault. Reproduce code: --------------- <?php require('http://noeljackson/?template=/templates/lastFive.tmpl.php?start='.$_GET['start']); ?> Expected result: ---------------- Return an error. Actual result: -------------- Spawning of httpd creating an eventual server hault. -- Edit bug report at http://bugs.php.net/?id=30425&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30425&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30425&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30425&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30425&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30425&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30425&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30425&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30425&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30425&r=support Expected behavior: http://bugs.php.net/fix.php?id=30425&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30425&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30425&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30425&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30425&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30425&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30425&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30425&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30425&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30425&r=mysqlcfg

« previous php.bugs (#67547) next »