Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35784 : segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th June 00:53
php-bugs@lists.php.net (crocodile2u at yandex dot
External User
 
Posts: 1
Default #35784 : segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On



From: crocodile2u at yandex dot ru
Operating system: linux fedora core 4
PHP version: 5CVS-2005-12-23 (snap)
PHP Bug Type: PDO related
Bug description: segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On

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 bug report at http://bugs.php.net/?id=35784&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35784&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35784&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35784&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35784&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35784&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35784&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35784&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35784&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35784&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35784&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35784&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35784&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35784&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35784&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35784&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35784&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35784&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35784&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35784&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35784&r=mysqlcfg
  Reply With Quote


  sponsored links


2 20th June 00:54
php-bugs@lists.php.net (crocodile2u at yandex dot
External User
 
Posts: 1
Default #35784 : segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On



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
  Reply With Quote
3 20th June 00:54
tony2001
External User
 
Posts: 1
Default #35784 : segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On


ID: 35784
Updated by: tony2001@php.net
Reported By: crocodile2u at yandex dot ru
-Status: Open
+Status: Assigned
Bug Type: PDO related
Operating System: linux fedora core 4
PHP Version: 5CVS-2005-12-23 (snap)
-Assigned To:
+Assigned To: wez


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

[2005-12-23 11:35:00] crocodile2u at yandex dot ru

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

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

[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
  Reply With Quote
4 20th June 06:23
iliaa
External User
 
Posts: 1
Default #35784 : segfault on PDOStatement::execute() with zend.ze1_compatibility_mode = On


ID: 35784
Updated by: iliaa@php.net
Reported By: crocodile2u at yandex dot ru
-Status: Assigned
+Status: Closed
Bug Type: PDO related
Operating System: linux fedora core 4
PHP Version: 5CVS-2005-12-23 (snap)
Assigned To: wez
New Comment:

Works fine in latest CVS. FYI in PHP 5.1 objects are always being
passed by reference so you don't need the & in front of new.


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

[2005-12-23 11:35:00] crocodile2u at yandex dot ru

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

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

[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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666