PHP :: Bug #38450 :: Url-Wrapper: No Constructor called
| 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
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 commits
[2006-08-14 15:12 UTC] tony2001@php.net