Re: Segfault with tokenizer on Win32
| From: | Alan Knowles | Date: | Thu, 09 May 2002 05:50:33 +0000 |
| Subject: | Re: Segfault with tokenizer on Win32 | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83834@lists.php.net to get a copy of this message | ||
The definitive work around :
in Zend/zend_alloc.c
#define ZEND_DISABLE_MEMORY_CACHE 1
After staring at the tokenizer code for quite a while - I cant see anything wrong with it ....
back to the original suspision about the zend cache......
does this affect ZE2 as well?
regards
alan
Sebastian Bergmann wrote:
Alan Knowles wrote:theres a work around in there (basically you cant re assign $this->tokens = token_get_all() ) you need to do something like $this->tokens_all[$file] = token_get_all($file); $this->tokens =& $this->tokens_all[$file]Crashes here as well. I just noticed, that Andrei's sample (php4/ext/tokenizer/tokenizer.php) crashes as well. It didn't crash with CVS from some days ago.