[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    [PHP-DEV] exceptions in overloaded objects still a little off
From:       "Wez Furlong" <wez () thebrainroom ! com>
Date:       2004-04-29 10:26:03
Message-ID: 007801c42dd4$615036a0$8a02a8c0 () tron
[Download RAW message or body]

If a read_dimension handler returns a NULL zval and throws an exception,
the engine will emit an error "Objects used as arrays in post/pre
increment/decrement must return values by reference".

$foo['bar'] = 42;

I know this is because the value is going to be written into, but
IMO it's better to fire the exception at this point, since the engine
error message hides the useful message from the exception (and is
a little misleading in any case).

--Wez.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic