From:             stochnagara at hotmail dot com
Operating system: windows xp
PHP version:      5CVS-2005-10-10 (snap)
PHP Bug Type:     PDO related
Bug description:  PDO FETCH_INTO crashes Apache

Description:
------------
The code bellow crashes Apache server. The crash is similar to bug #34802
but the crash code is quite different.

Reproduce code:
---------------
<?
$pdo = new PDO('mysql:host=localhost;dbname=borovo');
$sth = $pdo->prepare ('SELECT nid,type FROM node');
$sth->execute();
var_dump ($sth->fetch (PDO::FETCH_INTO, 3));



Expected result:
----------------
Warning: PDOStatement::fetch() [function.fetch]: SQLSTATE[HY000]: General
error: PDO_FETCH_FUNC is only allowed in PDOStatement::fetchAll() in
C:\Program Files\Apache Group\Apache2\htdocs\boroinvest\test.php on line
5
bool(false) 

Actual result:
--------------
Apache crashes.

Log message:
Parent: child process exited with status 3221225477 -- Restarting.

-- 
Edit bug report at http://bugs.php.net/?id=34809&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34809&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34809&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34809&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34809&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34809&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34809&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34809&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34809&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34809&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34809&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34809&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34809&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34809&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34809&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34809&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34809&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34809&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34809&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34809&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34809&r=mysqlcfg

Reply via email to