|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-30 01:59 UTC] morbid at bloodheart dot com
<? $loca="http://www.bloodheart.com/php"; switch ($id) { //test1 case blank1: $file="$loca/blank1"; break; //test2 case blank2: $file="$loca/blank2"; break; //test (This is where the bug starts.) // Note if you copy this file to another file and set the default as thatfilename (with .php ext) // Then spawns maxclients for apache, and stays that way forever, a very nasy loop. or until you restart apache // *Example* // default: // $file="$loca/bug2.php"; default: $file="$loca/blank3"; break; } ?> --CONFIGLINE ./configure --with-mysql=/usr/local/mysql \ --enable-track-vars \ --with-apache=../apache_1.3.22 \ --with-mm=../mm-1.1.3 \ --with-openssl=../openssl-0.9.6c \ --with-config-file-path=/usr/local/lib/php I don't recall this happening with an earlier version of php. This just started with 4.1.1 If you need anymore information please let me know PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 03:00:01 2025 UTC |
Ok, so if someone is running a site (For users) the users could do this and cause sites to go down with just a few lines of code? adding include_once; didn't work unless it occompanied by return; eg... //test (This is where the bug starts.) default: $file="$loca/bug2.php"; return; } include_once($file); There should be some sort of limit on this? Unless there is and I don't know of it. if there is I'm sorry. I have searched for something like this and haven't come across anything. Jason