|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-02 06:05 UTC] derick@php.net
[2003-06-04 17:37 UTC] wez@php.net
[2003-06-09 12:03 UTC] wez@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
This bug is in some way the same as reported in #14064. I got the following code: <?php define('FOO1', 1); define('FOO2', 2); class A { var $a_var = array(FOO1=>'foo1_value', FOO2=>'foo2_value'); } class B extends A { var $b_var = 'foo'; } $a = new A; $b = new B; print_r($a); print_r($b); ?> Class A is doing fine but in Class B the Zend-Engine converts my constants to strings, is that what you want? - Stefan