#42327 [Opn->Csd]: mistakes in examples ingres-ii: ingres-error.xml, ingres-errsqlstate.xml

From: Date: Mon, 20 Aug 2007 14:49:09 +0000
Subject: #42327 [Opn->Csd]: mistakes in examples ingres-ii: ingres-error.xml, ingres-errsqlstate.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377791@lists.php.net to get a copy of this message
ID: 42327 Updated by: vrana@php.net Reported By: glowacki at europa dot pl -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: all PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2007-08-17 12:39:45] glowacki at europa dot pl Description: ------------ mistakes in examples en/reference/ingres-ii/functions/ingres-error.xml en/reference/ingres-ii/functions/ingres-errsqlstate.xml Reproduce code: --------------- file: en/reference/ingres-ii/functions/ingres-error.xml ... $error_text = ingres_error(); if ( is_null($error_text) ) { echo "An error occured - " . $error_text; } // ingres_error() return NULL if no error has occurred. // function is_null() return TRUE if ingres_error() return NULL. // 'if statement' is TRUE and print "An error occured - " ---------------------------------------- file: en/reference/ingres-ii/functions/ingres-errsqlstate.xml ... $error_sqlstate = ingres_errsqlstate(); if ( is_null($error_sqlstate) ) { echo "An error occured - " . $error_sqlstate; } // ingres_errsqlstate() return NULL if no error SQLSTATE has occurred. // function is_null() return TRUE if ingres_errsqlstate() return NULL. // 'if statement' is TRUE and print "An error occured - " Expected result: ---------------- file: en/reference/ingres-ii/functions/ingres-error.xml ... $error_text = ingres_error(); if ( !is_null($error_text) ) { echo "An error occured - " . $error_text; } ---------------------------------------- file: en/reference/ingres-ii/functions/ingres-errsqlstate.xml ... $error_sqlstate = ingres_errsqlstate(); if ( !is_null($error_sqlstate) ) { echo "An error occured - " . $error_sqlstate; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42327&edit=1

« previous php.doc (#969377791) next »