|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-27 00:21 UTC] dinesh at dinsoft dot net
[2007-07-27 04:35 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
Description: ------------ The error message produced by PHP is a non sense. This should just work. Reproduce code: --------------- class DSProxy { function stream_open(string $path, string $mode, int $options, string $opened_path) { return false; } ... } stream_wrapper_register('proxy', 'DSProxy') or die("ERROR: Could not register the proxy protocol!\n"); $fp = fopen('proxy://www.dinsoft.net', 'r'); Expected result: ---------------- I expect it to work, or at least to produce a meaning full error message. Actual result: -------------- PHP Catchable fatal error: Argument 1 passed to DSProxy::stream_open() must be an instance of string, string given in E:\dev\flights\proxy.php on line 8 Catchable fatal error: Argument 1 passed to DSProxy::stream_open() must be an in stance of string, string given in E:\dev\flights\proxy.php on line 8