|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-10 04:14 UTC] mickael dot bailly at free dot fr
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 19:00:01 2025 UTC |
Note that this code works: <?PHP class test2 { public static $foo = 'ok'; } test2::$foo = array(); echo "test2::\$foo ? "; print_r(test2::$foo); echo "\n"; ?>