php.net |  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
Status: Closed Package: Streams related
PHP Version: 4.4.3 OS: Irrelevant
Private report: No CVE-ID:
 [2006-08-14 12:17 UTC] 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"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-14 15:12 UTC] tony2001@php.net
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-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 22:02:16 2014 UTC