#38450 [Opn->Asn]: Url-Wrapper: No Constructor called

From: Date: Mon, 14 Aug 2006 13:46:57 +0000
Subject: #38450 [Opn->Asn]: Url-Wrapper: No Constructor called
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100762@lists.php.net to get a copy of this message
ID: 38450 Updated by: tony2001@php.net Reported By: uli at combie dot de -Status: Open +Status: Assigned Bug Type: Class/Object related Operating System: Irrelevant PHP Version: 4.4.3 -Assigned To: +Assigned To: tony2001 Previous Comments: ------------------------------------------------------------------------ [2006-08-14 12:17:01] uli at combie dot de Description: ------------ I wrote my own MySQL-Url-Wrapper, while this task, i figure out, PHP creates an Instance whitout calling the constructor. To reproduce this, please use the example of the stream_wrapper_register Documentation. The same behavior in all reachable PHP Versions. Reproduce code: --------------- // php4 function VariableStream() { echo "Constuctor called<br>";} // php5 function __construct() { echo "Constuctor called<br>";} Expected result: ---------------- There ist no output like "Constuctor called" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38450&edit=1

« previous php.bugs (#100762) next »