php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34461 extends PDO seg when calling non exists method
Submitted: 2005-09-11 12:54 UTC Modified: 2005-10-02 22:48 UTC
From: momo@php.net Assigned: helly (profile)
Status: Closed Package: PDO related
PHP Version: 5.0.5 OS: win2000\gentoo 05.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: momo@php.net
New email:
PHP Version: OS:

 

 [2005-09-11 12:54 UTC] momo@php.net
Description:
------------
on class that extends PDO, i get segfault when calling non exists method.

Reproduce code:
---------------
class b extends PDO{
	function b(){
		$this->x();
	}
}

$b = new b();

Actual result:
--------------
#0  0xb78a8d59 in ?? ()
#1  0xb78a396f in ?? ()
#2  0xbfffd470 in ?? ()
#3  0x10000000 in ?? ()
#4  0x00000000 in ?? ()
#5  0x00000000 in ?? ()
#6  0x00000000 in ?? ()
#7  0x062522a3 in ?? ()
#8  0xbfffd4e0 in ?? ()
#9  0x08403d30 in ?? ()
#10 0xb78a38d4 in ?? ()
#11 0xbfffd470 in ?? ()
#12 0x08404078 in ?? ()
#13 0xb78a2e48 in ?? ()
#14 0x08403d30 in ?? ()
#15 0x08403ed0 in ?? ()
#16 0x00000000 in ?? ()
#17 0xbfffd524 in ?? ()
#18 0xb7ff1f18 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#19 0xb78a906f in ?? ()
#20 0x0840ca2c in ?? ()
#21 0x00000000 in ?? ()
#22 0x00000002 in ?? ()
#23 0xbfffd528 in ?? ()
#24 0x00000002 in ?? ()
#25 0x0840ca2c in ?? ()
#26 0x00000000 in ?? ()
#27 0xbfffd59c in ?? ()
#28 0xbfffd5d0 in ?? ()
#29 0xb78a8fd0 in ?? ()
#30 0xbfffd578 in ?? ()
#31 0x08216388 in zend_init_method_call_handler (execute_data=0xbfffd528,
    opline=0x84141cc, op_array=0x1)
    at /root/install/php-5.0.4/Zend/zend_execute.c:2533
#32 0x08216388 in zend_init_method_call_handler (execute_data=0xbfffd5d0,
    opline=0xb78a8fd0, op_array=0x841d8fc)
    at /root/install/php-5.0.4/Zend/zend_execute.c:2533
#33 0x08213a69 in execute (op_array=0x841d8fc)
    at /root/install/php-5.0.4/Zend/zend_execute.c:1406
#34 0x08216afd in zend_do_fcall_common_helper (execute_data=0xbfffd740,
    opline=0x841b10c, op_array=0x8416dac)
    at /root/install/php-5.0.4/Zend/zend_execute.c:2756
#35 0x08213a69 in execute (op_array=0x8416dac)
    at /root/install/php-5.0.4/Zend/zend_execute.c:1406
#36 0x081f4fc5 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /root/install/php-5.0.4/Zend/zend.c:1069
#37 0x081bf46d in php_execute_script (primary_file=0xbffffaf0)
    at /root/install/php-5.0.4/main/main.c:1632
#38 0x0821e252 in main (argc=2, argv=0xbffffb84)
    at /root/install/php-5.0.4/sapi/cli/php_cli.c:946

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-11 16:38 UTC] wez@php.net
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

This shouldn't even be possible (we marked the PDO constructor as final).
Can you try a 5.1 snapshot and reproduce the problem?

 [2005-09-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-10-02 22:48 UTC] helly@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC