From: rick dot hjpbarcelos at gmail dot com
Operating system: Linux/Ubuntu 12.10
PHP version: 5.4Git-2012-11-03 (snap)
Package: *Unicode Issues
Bug Type: Bug
Bug description:Can't throw exceptions with accentued chars coded in
latin1/ISO-8859-1
Description:
------------
Package 5.4.6-1ubuntu1
I don't really know why it's happening, started after I upgraded from
version 5.3.4.
I tried to set the coding on browser (tested with Firefox and Chrome) and
the problem didn't go away.
Test script:
---------------
Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);
header('Content-Type: text/html;charset=iso-8859-1');
throw new Exception("é");
Expected result:
----------------
Fatal error: Uncaught exception 'Exception' with message 'é' in
/home/henrique/public/teste.php:4 Stack trace: #0 {main} thrown in
/home/henrique/public/teste.php on line 4
Actual result:
--------------
On browser:
With xdegub:
( ! ) Fatal error: in /home/henrique/public/teste.php on line 4
( ! ) Exception: in /home/henrique/public/teste.php on line 4
Call Stack
# Time Memory Function Location
1 0.0002 124436 {main}( ) ../teste.php:0
Withou it:
Fatal error: in /home/henrique/public/teste.php on line 4
__________
On bash:
Stack trace:
#0 {main}
thrown in /home/henrique/public/teste.php on line 4
Fatal error: Uncaught exception 'Exception' with message '�' in
/home/henrique/public/teste.php on line 4
Exception: � in /home/henrique/public/teste.php on line 4
Call Stack:
0.0002 121256 1. {main}() /home/henrique/public/teste.php:0
--
Edit bug report at https://bugs.php.net/bug.php?id=63426&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=63426&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=63426&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=63426&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63426&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63426&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63426&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63426&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63426&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63426&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63426&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63426&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63426&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63426&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63426&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63426&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63426&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63426&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63426&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63426&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63426&r=mysqlcfg