php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61228
Patch htmlspecialchars.patch revision 2012-03-01 20:40 UTC by keisial at gmail dot com

Patch htmlspecialchars.patch for Unknown/Other Function Bug #61228

Patch version 2012-03-01 20:40 UTC

Return to Bug #61228 | Download this patch
Patch Revisions:

Developer: keisial@gmail.com

Index: ext/standard/html.c
===================================================================
--- html.c	(revision 323729)
+++ html.c	(working copy)
@@ -1285,6 +1285,7 @@
 				continue;
 			} else {
 				efree(replaced);
+				php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid multibyte sequence in argument"); 
 				*newlen = 0;
 				return STR_EMPTY_ALLOC();
 			}

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 14:03:46 2022 UTC