|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-01 11:58 UTC] tony2001@php.net
[2006-06-05 09:49 UTC] flconseil at yahoo dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 02:00:02 2025 UTC |
Description: ------------ When I send an exception from a stream wrapper method, the call fails with a generic warning message from PHP, but the message I sent with my exception is not displayed. It would be a useful enhancement to add it to the error string. (Tested in 5.1.2, should be the same in 5.1.4) Reproduce code: --------------- Example of an invalid URL : include('phk://mnt1/toto'); Expected result: ---------------- If the exception->message was also displayed, it would give something like : PHP Warning: include(phk://mnt1/toto): failed to open stream: Error opening PHK subfile - phk://mnt1/toto: Invalid URL - mnt1: Unknown PHK mount point - "PHK_Stream::stream_open" call failed in ... on line 6 Actual result: -------------- PHP Warning: include(phk://mnt1/toto): failed to open stream: "PHK_Stream::stream_open" call failed in ... on line 6 I have no way to tell the user why his URL failed. And, as STREAM_REPORT_ERRORS is unset, I am not allowed to raise any error from my code.