From: edernucci at hotmail dot com
Operating system: Windows XP Professional SP1
PHP version: Irrelevant
PHP Bug Type: Reproducible crash
Bug description: When execute the global requisition bellow the thread crashes
Description:
------------
I know this is a erroneous code, but the thread hangs on the server
(Apache 1.3.29 / Windows XP Professional SP1).
I don't know how to solve this.
Reproduce code:
---------------
<?php
/**
* @return FatalError
* @desc This function kills the PHP thread on the server.
*/
function boom()
{
$foo = "one.simple.dot.tokenized.string";
$bar = strtok($foo,'.');
global $$bar[0]; //<--- The script dies here :P
}
boom(); //<--- Here you will tell the server to go sleep :D
?>
Expected result:
----------------
Just trying to hang the webserver.
Any user can do this in my shared enviroment.
--
Edit bug report at http://bugs.php.net/?id=29707&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29707&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29707&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29707&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29707&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29707&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29707&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29707&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29707&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29707&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29707&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29707&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29707&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29707&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29707&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29707&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29707&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29707&r=float