|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-06-12 02:43 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2011-06-12 02:43 UTC] felipe@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 15:00:02 2025 UTC |
Description: ------------ From time to time in the line / * dead line * /$str = mb_eregi_replace ( "U\\+([A-F0-9]{4})", "U+\\1", $str); apache error: Application popup: httpd.exe - Application Error: The instruction at "0x016657e9" referenced memory at "0x00000001" (sometimes 000100 or 000002). The memory could not be "read". OR The instruction at "0x0165c37a" referenced memory at "0x6f647468". The memory could not be "read". If an error occurs at least once, it starts to appear each time you run this line. Write a short script that causes this error I could not. At address 0x016657e9 located php_mbstring.dll (base address 0x01640000, file version 5.2.17.17). Test script: --------------- function smartUtf8to1251($str) { mb_internal_encoding("utf-8"); mb_substitute_character('long'); /*dead line*/$str = mb_eregi_replace ( "U\\+([A-F0-9]{4})", "U+\\1", $str); $str = mb_convert_encoding($str, 'windows-1251', 'utf-8'); $str = preg_replace("~U\+([A-F0-9]{4})~ie", '"&#".hexdec("$1").";"', $str); return $str; }