Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_language_parser.y
| From: | Andi Gutmans | Date: | Thu, 10 Apr 2003 19:48:42 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_language_parser.y | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1135@lists.php.net to get a copy of this message | ||
Sterling,
This patch looks quite broken:
First of all the following doesn't seem to be trivial to fix. Following the latest discussions on engine2@ I doubt someone would let you get away without it :P
+ | class_or_namespace_constant { /* FIXME */ }
Secondly, are you sure the regular constants work? It seems to me that it won't work if the constant is defined in an include'd file because it won't be available at compile-time.
Last but not least, how about using switch in zend_do_fold_binary_op()?
Andi
At 03:43 PM 4/10/2003 +0000, Sterling Hughes wrote:
sterling Thu Apr 10 11:43:47 2003 EDTModified files:/ZendEngine2 zend_compile.c zend_compile.h zend_language_parser.yLog: allow expressions within constants, so the following is possible class foo {const a = 1<<0; const b = 1<<1; const c = a | b;} this makes const a compile-time expression. all other operators are unaffected. -- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php