Bug #13082: PEAR produces warnings with error_reporting = E_ALL
| From: | fidian at commnav dot com | Date: | Fri, 31 Aug 2001 17:38:03 +0000 |
| Subject: | Bug #13082: PEAR produces warnings with error_reporting = E_ALL | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64851@lists.php.net to get a copy of this message | ||
From: fidian@commnav.com
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: *Database Functions
Bug description: PEAR produces warnings with error_reporting = E_ALL
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.
--
Edit bug report at: http://bugs.php.net/?id=13082&edit=1