#31639 [Opn->Bgs]: mysql error code constant not defined

From: Date: Fri, 21 Jan 2005 16:36:03 +0000
Subject: #31639 [Opn->Bgs]: mysql error code constant not defined
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72603@lists.php.net to get a copy of this message
ID: 31639 Updated by: georg@php.net Reported By: mnemo at minimum dot se -Status: Open +Status: Bogus Bug Type: MySQL related PHP Version: Irrelevant New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php PHP doesn't use and support mysql's internal error constants. Previous Comments: ------------------------------------------------------------------------ [2005-01-21 16:17:14] mnemo at minimum dot se Description: ------------ the constant CR_CONNECTION_ERROR is not defined. this works: if (mysql_errno() == 2002) { blah } but this does not: if (mysql_errno() == CR_CONNECTION_ERROR) { blah } see, http://dev.mysql.com/doc/mysql/en/Error-handling.html ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31639&edit=1

« previous php.bugs (#72603) next »