Edit report at https://bugs.php.net/bug.php?id=62265&edit=1
ID: 62265 Updated by: ni...@php.net Reported by: lomo74 at gmail dot com Summary: crash with static member followed by 2+ non-static members Status: Open Type: Bug Package: Reproducible crash Operating System: Windows 7 PHP Version: 5.4.3 Block user comment: N Private report: N New Comment: Could you check whether the issue also exists when running PHP from the commandline (cli)? This way one could exclude the IIS and FastCGI parts of the chain. Previous Comments: ------------------------------------------------------------------------ [2012-06-08 17:17:18] lomo74 at gmail dot com just tested on a Windows 2003 machine + IIS + PHP FastCGI 5.4.3, it is not affected. will test on another Windows 7 machine ASAP. ------------------------------------------------------------------------ [2012-06-08 15:55:27] lomo74 at gmail dot com Description: ------------ using IIS + FastCGI PHP 5.4.3 on a Win7 machine. declaring a class that contains a static var followed by two or more non-static vars, the engine crashes when you try to instantiate the class. my Linux machine (Apache + PHP 5.4.3) is not affected by this issue. Test script: --------------- <?php class MYTest1 { static $data; } class MYTest2 { static $data; var $a; } class MYTest3 { static $data; var $a; var $b; } $obj = new MYTest1(); //ok $obj = new MYTest2(); //ok //the following crashes PHP $obj = new MYTest3(); echo "Still alive."; //won't print ?> Expected result: ---------------- the string "Still alive." Actual result: -------------- no output at all. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62265&edit=1