[PHP-DEV] Re: zend_highlight routine

2004-11-11 Thread Aidan Lister
Hi Robert, I think you'll find it's Appendix P. I recently documented all the PHP 5 additions to that page, my problem is not getting a list of tokens, http://lxr.php.net/source/php-src/ext/tokenizer/tokenizer.c#167 It's getting a list of tokens for which token.type IS_NULL. Thanks, though...

[PHP-DEV] PHP5 __call() now requires __sleep/wakeup() ?

2004-11-11 Thread Alan Knowles
I got a message the other day, saying that my overloaded classes in PHP5 where not serializing. It appears that because PHP4 __call(), could return null to indicate that the function did not exist, a class without __sleep worked ok. However for PHP5, as __sleep is not defined, __call is sent th

Re: [PHP-DEV] __get() "feature"

2004-11-11 Thread Jason Perkins
On Nov 11, 2004, at 1:17 PM, Marcus Boerger wrote: class sales_order { ... public function has_a( $class ) { $this->relationships[ $class ] = 'has_a'; } public function __get( $class ) { if(array_key_exists( $class, $this->relationships )) { if( $this->relationshi

Re: [PHP-DEV] __get() "feature"

2004-11-11 Thread Marcus Boerger
Hello Jason, Thursday, November 11, 2004, 4:21:23 PM, you wrote: > I've ran into an issue using __get() and want to ascertain if this is > how it was intended to work or if it's a bug. The general notion of > what I'm attempting to accomplish using __get() is that a given object > will potenti

[PHP-DEV] __get() "feature"

2004-11-11 Thread Jason Perkins
I've ran into an issue using __get() and want to ascertain if this is how it was intended to work or if it's a bug. The general notion of what I'm attempting to accomplish using __get() is that a given object will potentially contain other objects, but these contained objects aren't known (or g

[PHP-DEV] Re: zend_highlight routine

2004-11-11 Thread Robert Janeczek
> My problem is the token2color method, I'm not sure which tokens are > classed as keywords. At the moment I've just guessed as many as I > could think of, it's a bit ugly - presuming there is an easier way to > do it. Appendix N. List of Parser Tokens in php manual rash -- PHP Internals - PHP