From:             cel...@php.net
Operating system: n/a
PHP version:      5.3.0beta1
PHP Bug Type:     SQLite related
Bug description:  SQLite3->__construct has no sane way to detect errors

Description:
------------
SQLite3->__construct does not indicate errors by anything other than an
E_NOTICE.  This means we have to set a user error handler just to tell
whether or not this code succeeds:

<?php
$a = new SQLite3('/path/to/database.sqlite');
?>

the constructor should throw an exception, or provide an error string
parameter by reference like the SQLite object.

Reproduce code:
---------------
<?php
// run as non-root
$a = new SQLite3('/root/database.sqlite');
?>

Expected result:
----------------
exception

Actual result:
--------------
E_NOTICE error

-- 
Edit bug report at http://bugs.php.net/?id=47257&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47257&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47257&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47257&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47257&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47257&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47257&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47257&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47257&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47257&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47257&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47257&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47257&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47257&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47257&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47257&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47257&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47257&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47257&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47257&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47257&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47257&r=mysqlcfg

Reply via email to