ID:               35415
 User updated by:  gm at html dot it
 Reported By:      gm at html dot it
-Status:           Feedback
+Status:           Open
 Bug Type:         PDO related
 Operating System: Linux Fedora Core 4
 PHP Version:      5.1.1
 New Comment:

Always the same

#0  0x080cc965 in shutdown_memory_manager (silent=0, full_shutdown=0)
    at
/home/giancarlo/sorgenti/php5-200511281530/Zend/zend_alloc.c:511
#1  0x080b349d in php_request_shutdown (dummy=0x0) at
/home/giancarlo/sorgenti/php5-200511281530/main/main.c:1287
#2  0x0815e822 in apache_php_module_main (r=0x9752bb4,
display_source_mode=0)
    at
/home/giancarlo/sorgenti/php5-200511281530/sapi/apache/sapi_apache.c:59
#3  0x080ac725 in send_php ()
#4  0x080ac78a in send_parsed_php ()
#5  0x082fd123 in ap_invoke_handler ()
#6  0x083129de in process_request_internal ()
#7  0x08312a3e in ap_process_request ()
#8  0x0830952d in child_main ()
#9  0x08309750 in make_child ()
#10 0x083098a4 in startup_children ()
#11 0x08309f3a in standalone_main ()
#12 0x0830a741 in main ()


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

[2005-11-28 17:53:19] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Can't reproduce.

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

[2005-11-28 17:37:10] gm at html dot it

Here is the backtrace

#0  0x080cc915 in shutdown_memory_manager (silent=0, full_shutdown=0)
    at /home/giancarlo/sorgenti/php-5.1.1/Zend/zend_alloc.c:511
#1  0x080b344d in php_request_shutdown (dummy=0x0) at
/home/giancarlo/sorgenti/php-5.1.1/main/main.c:1287
#2  0x0815e7be in apache_php_module_main (r=0x920ab84,
display_source_mode=0)
    at /home/giancarlo/sorgenti/php-5.1.1/sapi/apache/sapi_apache.c:59
#3  0x080ac6d5 in send_php ()
#4  0x080ac73a in send_parsed_php ()
#5  0x082fcf3f in ap_invoke_handler ()
#6  0x083127fa in process_request_internal ()
#7  0x0831285a in ap_process_request ()
#8  0x08309349 in child_main ()
#9  0x0830956c in make_child ()
#10 0x083096c0 in startup_children ()
#11 0x08309d56 in standalone_main ()
#12 0x0830a55d in main ()

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

[2005-11-28 12:16:58] [EMAIL PROTECTED]

Not reproducible -> bogus.

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

[2005-11-28 10:25:32] gm at html dot it

Sorry, but i'm not able to reproduce GDB backtrace. I tried both the
methods described in the howto page you linked, but something went
wrong

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

[2005-11-28 06:48:41] kuprishuz at gmail dot com

description:
---------------
i have encountered the same problem, it appears that apache will crash
when an invalid sql call is used in conjunction with persistent
connections.

reproduce code:
---------------
keep in mind the sql statement must be incorrect to produce a crash.
crash will also occur when using $database->query as an alternative to
$database->prepare.

<?php
$database = new PDO('mysql:host=localhost;dbname=nitelife', 'root',
'Quell26A', array(PDO::ATTR_PERSISTENT => true));
        $query = $database->prepare("SELECT * FROM user WHERE id = ?");

        if ($query->execute(array('1'))) {
                while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
                        print_r($row);;
                }
        }
?>

Expected Result:
-------------------
sql call to fail and an error message retrievable from
$query->errorInfo()

Actual Result:
-------------------
Apache crash

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35415

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

Reply via email to