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

From: Date: Mon, 14 Aug 2006 15:12:13 +0000
Subject: #38450 [Asn->Csd]: Url-Wrapper: No Constructor called
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100775@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: Assigned +Status: Closed Bug Type: Streams related Operating System: Irrelevant PHP Version: 4.4.3 Assigned To: tony2001 New Comment: Fixed in HEAD and 5_2. I'll commit the patch to 4_4 as soon as I get "ok" from 4_4 release master. 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 (#100775) next »