From:
Operating system: Ubuntu 11.10
PHP version: 5.4.0RC6
Package: PDO related
Bug Type: Bug
Bug description:PDO crashes PHP FastCGI daemon when querying Sphinx server
Description:
------------
I have a sphinx server with real time indexes and I'm trying to query them
using
PDO via sphinx MySQL protocol.
Every time a script runs into `$pdo->execute(array(1))` part the whole PHP
FastCGI daemon crashes, no errors displayed in php error log.
Everything works normally when I query ordinary MySQL database this way.
Also provided code works fine in PHP 5.3
Test script:
---------------
$dsn = "mysql:host=127.0.0.1;port=9306;dbname=index";
$pdo = new PDO($dsn, '<user>', '<password>');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $pdo->prepare("SELECT * FROM user WHERE id = ?");
$rslt = $stmt->execute(array(1)); // crash
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
Expected result:
----------------
Either result set or PDO exception should be displayed.
Actual result:
--------------
Script fails silently without any records in error.log
Also PHP FastCGI daemon gets terminated.
--
Edit bug report at https://bugs.php.net/bug.php?id=60882&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60882&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60882&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60882&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60882&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60882&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60882&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60882&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60882&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60882&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60882&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60882&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60882&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60882&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60882&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60882&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60882&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60882&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60882&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60882&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60882&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60882&r=mysqlcfg