Re: [PHP-DEV] Nasty Parser Bug

2003-07-02 Thread Sterling Hughes
On Wed, 2003-07-02 at 10:11, Timm Friebe wrote: > On Wed, 2003-07-02 at 06:34, Sterling Hughes wrote: > [...] > > $t = new test; > > var_dump($t->filter('hello world')); > > Changing this line to: > var_dump(call_user_func(array($t, 'filter'), 'hello wor

Re: [PHP-DEV] Nasty Parser Bug

2003-07-02 Thread Timm Friebe
On Wed, 2003-07-02 at 06:34, Sterling Hughes wrote: [...] > $t = new test; > var_dump($t->filter('hello world')); Changing this line to: var_dump(call_user_func(array($t, 'filter'), 'hello world')); or even $t= new Reflection_Method('test', 'filte

[PHP-DEV] Nasty Parser Bug

2003-07-01 Thread Sterling Hughes
Hey, Bug 24441 (http://bugs.php.net/bug.php?id=24441), displays the following problem: array, array($this, 'filter')); } function filter ($value) { return preg_match("/{$this->filter}/i", $value); } } $t = new test; var_dump($t->filter('hello world')); ?>