|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-11 07:51 UTC] bugzilla33 at gmail dot com
Description:
------------
1. use Test script to generate crash.php, size 8192 bytes
2. now let crash php engine crash.php
3. Any php file of size 8192 bytes crashes Apache and PHP!
4. Tested with Apache 2.2.21 V9 apache longue, PHP 5.4.0 RC5 or RC6 dev on three other machines, Win 7 x86 or Win 7 x64.
Test script:
---------------
testcase php file generator:
<?php
$out='<?php//';
for($z=0;$z<8192-9;$z++){$out.=mt_rand(0,9);}
$out.='?>';
file_put_contents('crash.php',$out);
print('1. testcase file generated: crash.php, size '.strlen($out).' bytes<br/>');
print('2. now let crash php engine <a href="crash.php">crash.php</a><br/>');
print('<b style="color:red">3. Any php file of size 8192 bytes crashes Apache and PHP!</b><br/>');
print('4. Tested with Apache 2.2.21 V9 apache longue, PHP 5.4.0 RC5 or RC6 dev on three other machines, Win 7 x86 or Win 7 x64.<br/>');
?>
Expected result:
----------------
NO crash
Actual result:
--------------
CRASH
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
The shortest working example: <?php file_put_contents('8192_testcase.php',str_repeat(' ',8192)); ?> <a href="8192_testcase.php">run testcase</a> Use Apache 2.2.21, PHP 5.*, Win 7 x86/x64