From:             benjamin at schulz dot name
Operating system: linux
PHP version:      5.1.0b3
PHP Bug Type:     Unknown/Other Function
Bug description:  pdo-pgsql crashes by PDO_FETCH_LAZY attribute

Description:
------------
If the Exception constructor or a child class gets an object as argument
the errormessage doesn't contain a file or line what makes it hard to
track down because in <5.1 or even <= 5.1.0b2 (not sure) it was possible
to use different prototypes in Exception children

Reproduce code:
---------------
<?php
throw new Exception(new stdClass);
?>

Actual result:
--------------
Fatal error: Wrong parameter count for exception([string $exception [,
long $code ]]) in Unknown on line 0

-- 
Edit bug report at http://bugs.php.net/?id=33967&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33967&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33967&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33967&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33967&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33967&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33967&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33967&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33967&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33967&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33967&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33967&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33967&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33967&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33967&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33967&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33967&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33967&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33967&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33967&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33967&r=mysqlcfg

Reply via email to