#23951 [NEW]: Defines not working in inherited classes

From: Date: Mon, 02 Jun 2003 11:01:29 +0000
Subject: #23951 [NEW]: Defines not working in inherited classes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40896@lists.php.net to get a copy of this message
From: sbecker at justseven dot de Operating system: Linux 2.4 PHP version: 4CVS-2003-06-02 (stable) PHP Bug Type: Scripting Engine problem Bug description: Defines not working in inherited classes 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 -- Edit bug report at http://bugs.php.net/?id=23951&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23951&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23951&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23951&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23951&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23951&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23951&r=support Expected behavior: http://bugs.php.net/fix.php?id=23951&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23951&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23951&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23951&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23951&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23951&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23951&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23951&r=gnused

« previous php.bugs (#40896) next »