Re: probably the var_dump()'s problem is in its roots.
| From: | Zeev Suraski | Date: | Thu, 14 Mar 2002 11:05:41 +0000 |
| Subject: | Re: probably the var_dump()'s problem is in its roots. | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81202@lists.php.net to get a copy of this message | ||
At 13:04 14/03/2002, Andrey Hristov wrote:
print_r() handles the recursion and says that there is a recursion. After Yasuo's patch var_dump() does the same. Why then other functions have to produce E_ERROR.It's not other functions, it's the infrastructure. With var_dump(), we know it should be relatively safe to spit out 'recursion', and go on running. In mostly all other cases, comparing two elements included, if you bump into a recursion, it's not safe to assume that everything is ok and go on running. That's why the infrastructure aborts execution. Zeev