|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPHP12345678 (last revision 2018-09-17 20:48 UTC by kaaffay at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits              [2018-06-27 05:10 UTC] laruence@php.net
  [2018-06-27 05:10 UTC] laruence@php.net
 
-Status: Open
+Status: Closed
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 03:00:01 2025 UTC | 
Description: ------------ Using array assignment on a string reference usually causes a fatal 'Illegal string offset' error. PHP hang when a using an error handler that converts errors to exceptions. This only effects invalid array access on references. An illegal array access on a non reference variable causes the exception to be emitted. Test script: --------------- set_error_handler(function ($severity, $message, $file, $line) { throw new \Exception($message); }); $x = "foo"; $y = &$x["bar"]; Expected result: ---------------- PHP Fatal error: Uncaught Exception: Illegal string offset 'bar' in ...