From:             
Operating system: 
PHP version:      5.4.3
Package:          SQLite related
Bug Type:         Bug
Bug description:sqlite3 db in ob_start callback fails

Description:
------------
If you connect to a SQLite3 database in the ob_start callback function then
the 
script exits without any output and the database doesn't get written to.

In the test script if you move the SQLite3 database code out of the
callback 
function the script works, however it fails if there is any connection to a

SQLite3 database withing the callback function.

Test script:
---------------
<?php
ob_start('callbackfunc');
echo 'test test test test test test test test test ';
function callbackfunc($buffer) {

        return $buffer;
}

        $DB = new SQLite3('db');
        $DB->exec('CREATE TABLE test (one int, two text);');
        $DB->exec('INSERT INTO test VALUES (10, \'some text\')');
?>

Expected result:
----------------
The database gets written to and the output gets sent.

Actual result:
--------------
Script exits with no output and database is not created.

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

Reply via email to