Why do I get a PHP 5.2.6 segmentation fault when using PDO_SQlite?
        Posted  
        
            by danieltalsky
        on Server Fault
        
        See other posts from Server Fault
        
            or by danieltalsky
        
        
        
        Published on 2010-04-07T20:27:03Z
        Indexed on 
            2010/04/07
            20:33 UTC
        
        
        Read the original article
        Hit count: 226
        
This is an installation on ModWest's shared hosting. I have enabled both PDO and PDO_sqlite on the server and phpinfo() verifies both are running. When I access PDO itself, I'm fine, and getting a meaningful error.
<?php
  $dbh = new PDO("");
?>
This gives me an "Invalid Connection String" error.
But, as soon as I begin a connection string with sqlite:, I get a total crash.  When I run via the webserver, I'm seeing NO error.  When I enter a nonexistant filename, PHP does indeed create the file.  
I tried running the constructor via CLI and there I do get a simple error:
Segmentation Fault
I'm not seeing ANYTHING in the PHP 5.2.6 changelogs about this bug. Anyone have any additional troubleshooting steps?
The OS is Debian 5.0.4
© Server Fault or respective owner