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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 12 11:01:30 2025 UTC