From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      5CVS-2003-02-10 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  class static variable can't be an array

here is a script that reproduce the problem (tested with 
2002/02/10 cvs): 
 
<?PHP 
 
class test { 
  public static $foo = 'ok!'; 
} 
 
echo "test::\$foo ? "; 
print_r(test::$foo); 
echo "\n"; 
 
class test2 { 
 public static $foo = array(); 
} 
 
echo "test2::\$foo ? "; 
print_r(test2::$foo); 
echo "\n"; 
 
?> 
 
 
that outputs: 
test::$foo ? ok! 
test2::$foo ? Segmentation fault 
 
PHP configure line: 
./configure --prefix=/usr/local/php2 
--with-apxs=/usr/local/apache_php2/bin/apxs 
--with-mysql=/usr/local/mysql 
 
tested with PHP CLI. 
-- 
Edit bug report at http://bugs.php.net/?id=22145&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22145&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22145&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22145&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22145&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22145&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22145&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22145&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22145&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22145&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22145&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22145&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22145&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22145&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22145&r=gnused

Reply via email to