#50703 [Bgs->Csd]: Call parent::__construct in MySQL with call_user_func* segfault php
| From: | bjori@php.net | Date: | Sat, 09 Jan 2010 01:48:28 +0000 |
| Subject: | #50703 [Bgs->Csd]: Call parent::__construct in MySQL with call_user_func* segfault php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146469@lists.php.net to get a copy of this message | ||
ID: 50703
Updated by: bjori@php.net
Reported By: gmblar+php at gmail dot com
-Status: Bogus
+Status: Closed
Bug Type: MySQLi related
Operating System: *
PHP Version: 5.3.1
New Comment:
This bug has been fixed in SVN.
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.
This actually was a bug in 5.3.1, which is fixed in 5.3.3-dev.
Please try the latest 5.3 RC: http://qa.php.net/
Previous Comments:
------------------------------------------------------------------------
[2010-01-09 00:36:56] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This is an endless recursion to the Database_MySQLi constructor.
------------------------------------------------------------------------
[2010-01-08 23:19:39] gmblar+php at gmail dot com
Description:
------------
Call parent::__construct in MySQL with call_user_func* segfault php
Reproduce code:
---------------
<?php
class Database_MySQLi extends MySQLi {
public function __construct() {
$arguments = func_get_args();
call_user_func_array(array('parent', '__construct'),
$arguments);
}
}
$database = new Database_MySQLi('localhost', 'username', 'password');
?>
Expected result:
----------------
No Segmentation fault
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50703&edit=1