Req #43743 [Opn->Nab]: Unicode Error Mode That Throws Exceptions On Error

From: Date: Sat, 05 May 2018 19:25:28 +0000
Subject: Req #43743 [Opn->Nab]: Unicode Error Mode That Throws Exceptions On Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=43743&edit=1 ID: 43743 Updated by: requinix@php.net Reported by: geoffers at gmail dot com Summary: Unicode Error Mode That Throws Exceptions On Error -Status: Open +Status: Not a bug Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Irrelevant PHP Version: 6CVS-2008-01-03 (CVS) Block user comment: N Private report: N New Comment: NAB due to insufficient quantities of PHP 6. Previous Comments: ------------------------------------------------------------------------ [2008-01-03 22:22:18] geoffers at gmail dot com Description: ------------ It would be useful to have a unicode error mode that threw exceptions on an error: this would make it possible to have different behaviour an error. Currently all that is possible is creating a custom error handler and acting differently depending on what the error string is: can an error string really be relied upon to never change? I doubt it. What practical use, though? Most obviously, checking if a string is valid under a certain encoding. This is needed when processing real- world XML data, due to the vast amount sent with the wrong encoding. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=43743&edit=1

« previous php.bugs (#215084) next »