|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-23 11:30 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
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