|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38450 Url-Wrapper: No Constructor called
Submitted: 2006-08-14 12:17 UTC Modified: 2006-08-14 15:12 UTC
From: uli at combie dot de Assigned: tony2001 (profile)
Status: Closed Package: Streams related
PHP Version: 4.4.3 OS: Irrelevant
Private report: No CVE-ID: None
 [2006-08-14 12:17 UTC] uli at combie dot de
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"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-14 15:12 UTC]
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 16:01:35 2024 UTC