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 (profile)
Status: Closed Package: Streams related
PHP Version: 4.4.3 OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: uli at combie dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 16:01:27 2024 UTC