[PHP-BUG] Bug #62000 [NEW]: sqlite3 db in ob_start callback fails
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: --- 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
Bug #62000 [Com]: sqlite3 db in ob_start callback fails
Edit report at https://bugs.php.net/bug.php?id=62000&edit=1 ID: 62000 Comment by: sicommnend at gmail dot com Reported by:sicommnend at gmail dot com Summary:sqlite3 db in ob_start callback fails Status: Open Type: Bug Package:SQLite related PHP Version:5.4.3 Block user comment: N Private report: N New Comment: The test script I posted above will suceed, this is the one that will fail. Got my testing scripts mixed up there. exec('CREATE TABLE test (one int, two text);'); $DB->exec('INSERT INTO test VALUES (10, \'some text\')'); return $buffer; } ?> Previous Comments: ------------ [2012-05-10 21:43:12] sicommnend at gmail dot com 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: --- 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 this bug report at https://bugs.php.net/bug.php?id=62000&edit=1
Bug #62000 [Opn]: sqlite3 db in ob_start callback fails
Edit report at https://bugs.php.net/bug.php?id=62000&edit=1 ID: 62000 User updated by:sicommnend at gmail dot com Reported by:sicommnend at gmail dot com Summary:sqlite3 db in ob_start callback fails Status: Open Type: Bug Package:SQLite related -Operating System: +Operating System: Linux -PHP Version:5.4.3 +PHP Version:5.3 Block user comment: N Private report: N New Comment: Wrong PHP version meant 5.3 Previous Comments: [2012-05-10 21:45:08] sicommnend at gmail dot com The test script I posted above will suceed, this is the one that will fail. Got my testing scripts mixed up there. exec('CREATE TABLE test (one int, two text);'); $DB->exec('INSERT INTO test VALUES (10, \'some text\')'); return $buffer; } ?> ------------ [2012-05-10 21:43:12] sicommnend at gmail dot com 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: --- 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 this bug report at https://bugs.php.net/bug.php?id=62000&edit=1
Bug #62000 [Opn]: sqlite3 db in ob_start callback fails
Edit report at https://bugs.php.net/bug.php?id=62000&edit=1 ID: 62000 User updated by:sicommnend at gmail dot com Reported by:sicommnend at gmail dot com Summary:sqlite3 db in ob_start callback fails Status: Open Type: Bug Package:SQLite related Operating System: Linux -PHP Version:5.3 +PHP Version:5.3.6 Block user comment: N Private report: N New Comment: Edited version to be more exact. Previous Comments: [2012-05-12 02:58:40] sicommnend at gmail dot com Wrong PHP version meant 5.3 [2012-05-10 21:45:08] sicommnend at gmail dot com The test script I posted above will suceed, this is the one that will fail. Got my testing scripts mixed up there. exec('CREATE TABLE test (one int, two text);'); $DB->exec('INSERT INTO test VALUES (10, \'some text\')'); return $buffer; } ?> ------------ [2012-05-10 21:43:12] sicommnend at gmail dot com 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: --- 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 this bug report at https://bugs.php.net/bug.php?id=62000&edit=1
Bug #62000 [Com]: sqlite3 db in ob_start callback fails
Edit report at https://bugs.php.net/bug.php?id=62000&edit=1 ID: 62000 Comment by: sicommnend at gmail dot com Reported by:sicommnend at gmail dot com Summary:sqlite3 db in ob_start callback fails Status: Open Type: Bug Package:SQLite related Operating System: Linux PHP Version:5.3.6 Block user comment: N Private report: N New Comment: SQLite Library 3.7.4 SQLite Library 2.8.17 SQLite versions, just tested on SQLite 2 and same problem. I notice in SQLite 2 if I use the procedural programming method the output is returned of the output buffer but no database activity. However if I use the OOP method I get no output, no error, or no database activity. In either method though, the SQLite database is still unreachable. Previous Comments: [2012-05-12 03:03:41] sicommnend at gmail dot com Edited version to be more exact. [2012-05-12 02:58:40] sicommnend at gmail dot com Wrong PHP version meant 5.3 [2012-05-10 21:45:08] sicommnend at gmail dot com The test script I posted above will suceed, this is the one that will fail. Got my testing scripts mixed up there. exec('CREATE TABLE test (one int, two text);'); $DB->exec('INSERT INTO test VALUES (10, \'some text\')'); return $buffer; } ?> ------------ [2012-05-10 21:43:12] sicommnend at gmail dot com 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: --- 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 this bug report at https://bugs.php.net/bug.php?id=62000&edit=1