|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13082 PEAR produces warnings with error_reporting = E_ALL
Submitted: 2001-08-31 13:38 UTC Modified: 2001-10-06 13:58 UTC
From: fidian at commnav dot com Assigned:
Status: Closed Package: *Database Functions
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: fidian at commnav dot com
New email:
PHP Version: OS:


 [2001-08-31 13:38 UTC] fidian at commnav dot com
Set error_reporting to E_ALL and use the PEAR database functions.

Warning: Undefined property: prepare_maxstmt in /usr/local/lib/php/DB/common.php on line 287

That line is

$stmt = (int)$this->prepare_maxstmt++;

It looks like the constructor should just set prepare_maxstmt to zero to avoid the warning.  Another:

Warning: Undefined offset: 1103 in /usr/local/lib/php/DB/common.php on line 126

In looking at the code, I bet a lot of statements could use "if isset($var)" type of conditions before accessing them.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-06 13:58 UTC]
This has been fixed in CVS.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri May 29 21:01:25 2020 UTC