php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23270 Error in DB.php error code definitions
Submitted: 2003-04-18 09:25 UTC Modified: 2003-04-18 09:33 UTC
From: jkaufman at wamnet dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4CVS-2003-04-18 (stable) OS: Mandrake Linux 9.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 30 = ?
Subscribe to this entry?

 
 [2003-04-18 09:25 UTC] jkaufman at wamnet dot com
In the 4-18-03 Stable release, DB.php contains these defs:

define("DB_ERROR_CONNECT_FAILED",     -24);
define("DB_ERROR_EXTENSION_NOT_FOUND",-25);
define("DB_ERROR_NOSUCHDB",           -25);
define("DB_ERROR_ACCESS_VIOLATION",   -26);

Note that two of them have the same error number.

The defs should be:

define("DB_ERROR_CONNECT_FAILED",     -24);
define("DB_ERROR_EXTENSION_NOT_FOUND",-25);
define("DB_ERROR_NOSUCHDB",           -26);
define("DB_ERROR_ACCESS_VIOLATION",   -27);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-18 09:33 UTC] lsmith@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

this issue is definately solved in the latest beta
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 23:01:30 2024 UTC