[PHP-DEV] Where I can find the official PHP5 grammar/specification?

2008-12-23 Thread Juan Kinunt
Hi! I'm looking for the PHP 5 grammar specification. I'm studying the possibility of implementing an abstract interpretation tool with flex/bison in order to find security vulnerabilities (Injection vulnerabilities, XSS) in the code in a static manner. I know Pixy but I would like to study another

Re: [PHP-DEV] __invoke() weirdness

2008-12-23 Thread Stanislav Malyshev
Hi! This gives a fatal "Call to undefined method DateTime::getAtom()" $d = new DateTime(); $d->getAtom = Curry::create(array($d, 'format'), DATE_ATOM); echo $d->getAtom(); This syntax means "call method getAtom of object $d". PHP has no way of reusing same syntax for two different thing

[PHP-DEV] __invoke() weirdness

2008-12-23 Thread David Zülke
Hi folks, I played with __invoke today: class Curry { protected $callable; protected $args; public static function create($callable) { $curry = new self($callable, array_slice(func_get_args(), 1)); return $curry; } protected function __construct($callable, $args) { $t

Re: [PHP-DEV] 46848 can be closed

2008-12-23 Thread Jacques Marneweck
Hi Marius, I can see that Tony has already closed that bug during the course of yesterday afternoon. Regards --jm On 22 Dec 2008, at 4:34 PM, marius popa wrote: 46848 can be closed I couldn't reproduce the bug with 5.2.8 http://bugs.php.net/46848 Missing Record in query Tested on :windo

Re: [PHP-DEV] 46848 can be closed

2008-12-23 Thread Jacques Marneweck
Hi Marius, Taking a look. Regards --jm On 22 Dec 2008, at 4:34 PM, marius popa wrote: 46848 can be closed I couldn't reproduce the bug with 5.2.8 http://bugs.php.net/46848 Missing Record in query Tested on :windowsxp , on ubuntu intrepid with default php also on ubuntu with 5.2.8 compiled