Edit report at https://bugs.php.net/bug.php?id=60709&edit=1

 ID:                 60709
 Updated by:         paj...@php.net
 Reported by:        bugzilla33 at gmail dot com
 Summary:            Any php file of size 8192 bytes crashes Apache and
                     PHP
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Win All
 PHP Version:        5.4.0RC5
 Block user comment: N
 Private report:     N

 New Comment:

See #48034


Previous Comments:
------------------------------------------------------------------------
[2012-01-11 09:36:03] bugzilla33 at gmail dot com

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

------------------------------------------------------------------------
[2012-01-11 09:01:48] ninzya at inbox dot lv

Duplicate: https://bugs.php.net/bug.php?id=48034

------------------------------------------------------------------------
[2012-01-11 07:54:11] bugzilla33 at gmail dot com

Apache error.log:

[Wed Jan 11 08:39:51 2012] [notice] Parent: child process exited with status 
255 -- Restarting.

------------------------------------------------------------------------
[2012-01-11 07:51:23] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60709&edit=1

Reply via email to