This generates a parse error: 
                mysql_connect("localhost", "root", "rootpw") or return("bar"); 
 
        But all the following work fine: 
                mysql_connect("localhost", "root", "rootpw") or die("bar"); 
 
                mysql_connect("localhost", "root", "rootpw") or print("bar"); 
 
                if (!mysql_connect("localhost", "root", "rootpw")) { 
                        return("bar"); 
                } 
 
        Why? mysql_connect returns false on failure either way... I notice die  

and print are functions but return seems not to be, it doesn't have a  
'function.[name].html' file in the manual. *scratches head* I can't see  

any reason in the manual for this behavior. Am I missing something? 
 
        PHP is running on Linux 2.2.19 and identifies as '4.0.2'. phpinfo also 
says:
'./configure' '--with-mysql' '--with-apache=../apache_1.3.12' '--
enable-track-vars' '--disable-debug' '--disable-xml'
         




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to