#35784 [Opn]: segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On

From: Date: Fri, 23 Dec 2005 10:35:02 +0000
Subject: #35784 [Opn]: segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90921@lists.php.net to get a copy of this message
 ID:               35784
 User updated by:  crocodile2u at yandex dot ru
 Reported By:      crocodile2u at yandex dot ru
 Status:           Open
 Bug Type:         PDO related
 Operating System: linux fedora core 4
 PHP Version:      5CVS-2005-12-23 (snap)
 New Comment:

backtrace
[sorry if I'm casually duplicating this...]
(gdb) bt
#0  pdo_parse_params (stmt=0x8ffacbc, inquery=0x0, inquery_len=33,
outquery=0x8ffad08, outquery_len=0x21)
    at /new-ext3/src/php5.1-200512230530/ext/pdo/pdo_sql_parser.c:93
#1  0x08137bbd in zif_PDOStatement_execute (ht=0,
return_value=0x9008c84, return_value_ptr=0x0, this_ptr=0x9008c64,
    return_value_used=0) at
/new-ext3/src/php5.1-200512230530/ext/pdo/pdo_stmt.c:410
#2  0x08214ecc in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe02e80)
    at /new-ext3/src/php5.1-200512230530/Zend/zend_vm_execute.h:192
#3  0x082146d1 in execute (op_array=0x900431c) at
/new-ext3/src/php5.1-200512230530/Zend/zend_vm_execute.h:92
#4  0x081fea5f in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /new-ext3/src/php5.1-200512230530/Zend/zend.c:1101
#5  0x081caefe in php_execute_script (primary_file=0xbfe05274) at
/new-ext3/src/php5.1-200512230530/main/main.c:1720
#6  0x082772e0 in main (argc=2, argv=0xbfe05364) at
/new-ext3/src/php5.1-200512230530/sapi/cli/php_cli.c:1077


Previous Comments:
------------------------------------------------------------------------

[2005-12-23 11:30:21] crocodile2u at yandex dot ru

Description:
------------
see summary

Reproduce code:
---------------
$pdo = & new PDO('mysql:dbname=test;host=localhost', 'root',
'vitek');

$stmt = $pdo->prepare('SHOW TABLES');
$stmt->execute();

var_dump($stmt);

Expected result:
----------------
object(PDOStatement)#2 (1) {
  ["queryString"]=>
  string(11) "SHOW TABLES"
}

Actual result:
--------------
Segmentation fault


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35784&edit=1


Thread (4 messages)

« previous php.bugs (#90921) next »