From: lomo74 at gmail dot com
Operating system: Windows
PHP version: 5.4.3
Package: Reproducible crash
Bug Type: Bug
Bug description:crash with static member followed by 2+ non-static members
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 bug report at https://bugs.php.net/bug.php?id=62265&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62265&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62265&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=62265&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62265&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=62265&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62265&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=62265&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=62265&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=62265&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=62265&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=62265&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=62265&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=62265&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62265&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=62265&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62265&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=62265&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=62265&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=62265&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=62265&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=62265&r=mysqlcfg