Re: class constants crash PHP
| From: | Andi Gutmans | Date: | Tue, 09 Mar 2004 15:37:30 +0000 |
| Subject: | Re: class constants crash PHP | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8465@lists.php.net to get a copy of this message | ||
Fixed.
At 07:10 PM 3/5/2004 +0100, Ard Biesheuvel wrote:
This script crashes with the latest HEAD. I don't know if it is something that did work at an earlier time. <? class ResourceFormat {const IMG = 1;} class Image {const RESOURCE_FORMAT = ResourceFormat::IMG;} print_r(constant('Image::RESOURCE_FORMAT')); ?> -- Ard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php