note 58184 rejected from function.eval by betz
| From: | betz@php.net | Date: | Thu, 27 Oct 2005 08:05:51 +0000 |
| Subject: | note 58184 rejected from function.eval by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97658@lists.php.net to get a copy of this message | ||
Note Submitter: gerard dot mason at gmail dot com
----
Pardon me if I'm wrong about this but I'm new to php. Implicit in the documentation, but
it should be noted explicitly, is that you had better return something yourself if you want to test
that the 'eval' executed properly.
Otherwise, it says, it returns NULL if everything went ok, FALSE if there was an error. But my php
(the cli version) seems to think that NULL == FALSE, so my poor newbie code (I was building up a
'$stmt->bind_param' statement dynamically) always thought that it hadn't worked
when in fact it had. Solution: include a 'return TRUE;' at the end!