#27602 [NEW]: register(ticks=1) breaks class inheritence

From: Date: Mon, 15 Mar 2004 10:59:04 +0000
Subject: #27602 [NEW]: register(ticks=1) breaks class inheritence
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56453@lists.php.net to get a copy of this message
From: csmall at enc dot com dot au Operating system: Debian Linux PHP version: 4.3.4 PHP Bug Type: Scripting Engine problem Bug description: register(ticks=1) breaks class inheritence Description: ------------ Classes must be declared in order when you have declare(ticks=1) in the file (or any file that includes it). They do not have to be if the declaration is not used. Reproduce code: --------------- <?php declare(ticks=1); class foo2 extends foo1 { var $value; } class foo1 { var $myvalue; } ?> Expected result: ---------------- See nothing, no error importantly. Actual result: -------------- Fatal error: Class foo2: Cannot inherit from undefined class foo1 in /home/csmall/test.php on line 3 -- Edit bug report at http://bugs.php.net/?id=27602&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27602&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27602&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27602&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27602&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27602&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27602&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27602&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27602&r=support Expected behavior: http://bugs.php.net/fix.php?id=27602&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27602&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27602&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27602&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27602&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27602&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27602&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27602&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27602&r=float

« previous php.bugs (#56453) next »