| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2012-06-08 17:17 UTC] lomo74 at gmail dot com
 
-Operating System: Windows
+Operating System: Windows 7
  [2012-06-08 17:17 UTC] lomo74 at gmail dot com
  [2012-06-08 23:24 UTC] nikic@php.net
  [2012-06-10 16:02 UTC] lomo74 at gmail dot com
  [2012-06-10 16:07 UTC] felipe@php.net
  [2012-06-10 16:07 UTC] felipe@php.net
 
-Status: Open
+Status: Not a bug
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
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.