ID:               42327
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to