#50703 [Opn->Bgs]: Call parent::__construct in MySQL with call_user_func* segfault php

From: Date: Sat, 09 Jan 2010 00:36:56 +0000
Subject: #50703 [Opn->Bgs]: 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-146468@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: Open +Status: Bogus Bug Type: MySQLi related Operating System: * PHP Version: 5.3.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#146468) next »