Re: [PHP-CVS] cvs: php-src /ext/spl spl_fastarray.c

2008-06-07 Thread Marcus Boerger
Hello Antony, Saturday, June 7, 2008, 2:46:54 PM, you wrote: tony2001Sat Jun 7 12:46:54 2008 UTC Modified files: /php-src/ext/splspl_fastarray.c Log: disallow $a[] = value syntax

Re: [PHP-CVS] cvs: php-src /ext/spl spl_fastarray.c

2008-06-07 Thread Antony Dovgal
On 07.06.2008 22:59, Marcus Boerger wrote: + if (!offset) { + /* '$array[] = value' syntax is not supported */ + zend_throw_exception(spl_ce_RuntimeException, Index invalid or out of range, 0 TSRMLS_CC); Why not use OverflowException here? Do you think it's