note 58184 added to function.eval

From: Date: Wed, 26 Oct 2005 23:07:15 +0000
Subject: note 58184 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-97643@lists.php.net to get a copy of this message
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! ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58184 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58184&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58184&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97643) next »