[PHP-DEV] Bug #13082: PEAR produces warnings with error_reporting = E_ALL From: fidian <email protected>
Date: 08/31/01

From: fidian <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>