Patch pulled from cvs.php.net
---- php-5.1.2/ext/standard/html.c 2006/01/01 12:50:14 1.111.2.1
-+++ php-5.1.2/ext/standard/html.c 2006/02/25 21:32:11 1.111.2.2
-@@ -884,7 +884,7 @@
+--- php-4.4.2/ext/standard/html.c 2006/01/01 13:46:57 1.63.2.23.2.1
++++ php-4.4.2/ext/standard/html.c 2006/02/25 21:33:06 1.63.2.23.2.2
+@@ -793,7 +793,7 @@
+ enum entity_charset charset = determine_charset(hint_charset TSRMLS_CC);
unsigned char replacement[15];
- int replacement_len;
-
+
- ret = estrdup(old);
+ ret = estrndup(old, oldlen);
retlen = oldlen;