jani            Tue Dec 11 12:25:52 2007 UTC

  Modified files:              
    /php-src/ext/standard       html.c 
  Log:
  - Revert previous patch, it was correct to do this, error is logged if 
logging is enabled
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.127&r2=1.128&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.127 php-src/ext/standard/html.c:1.128
--- php-src/ext/standard/html.c:1.127   Tue Dec 11 11:28:43 2007
+++ php-src/ext/standard/html.c Tue Dec 11 12:25:52 2007
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: html.c,v 1.127 2007/12/11 11:28:43 jani Exp $ */
+/* $Id: html.c,v 1.128 2007/12/11 12:25:52 jani Exp $ */
 
 /*
  * HTML entity resources:
@@ -1135,7 +1135,9 @@
                if(status == FAILURE) {
                        /* invalid MB sequence */
                        efree(replaced);
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid 
multibyte sequence in argument");
+                       if(!PG(display_errors)) {
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Invalid multibyte sequence in argument");
+                       }
                        *newlen = 0;
                        return STR_EMPTY_ALLOC();
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to