iliaa           Tue Apr 24 13:54:59 2007 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/simplexml/tests        bug41175.phpt 

  Modified files:              
    /php-src    NEWS 
    /php-src/ext/simplexml      simplexml.c 
  Log:
  
  Fixed bug #41175 (addAttribute() fails to add an attribute with an empty
  value). 
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.661&r2=1.2027.2.547.2.662&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.661 php-src/NEWS:1.2027.2.547.2.662
--- php-src/NEWS:1.2027.2.547.2.661     Mon Apr 23 15:23:37 2007
+++ php-src/NEWS        Tue Apr 24 13:54:59 2007
@@ -4,6 +4,8 @@
 - Fixed commandline handling fro CLI and CGI. (Marcus, Johannes)
 - Upgraded SQLite 3 to version 3.3.16 (Ilia)
 - Updated timezone database to version 2007.5. (Derick)
+- Fixed bug #41175 (addAttribute() fails to add an attribute with an empty
+  value). (Ilia)
 - Fixed bug #41159 (mysql_pconnect() hash does not account for connect
   flags). (Ilia)
 - Fixed bug #41121 (range() overflow handling for large numbers on 32bit
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/simplexml.c?r1=1.151.2.22.2.24&r2=1.151.2.22.2.25&diff_format=u
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.151.2.22.2.24 
php-src/ext/simplexml/simplexml.c:1.151.2.22.2.25
--- php-src/ext/simplexml/simplexml.c:1.151.2.22.2.24   Mon Mar 26 20:14:58 2007
+++ php-src/ext/simplexml/simplexml.c   Tue Apr 24 13:54:59 2007
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: simplexml.c,v 1.151.2.22.2.24 2007/03/26 20:14:58 rrichards Exp $ */
+/* $Id: simplexml.c,v 1.151.2.22.2.25 2007/04/24 13:54:59 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1542,7 +1542,7 @@
                return;
        }
 
-       if (qname_len == 0 || value_len == 0) {
+       if (qname_len == 0) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attribute name and 
value are required");
                return;
        }
@@ -2368,7 +2368,7 @@
 {
        php_info_print_table_start();
        php_info_print_table_header(2, "Simplexml support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.151.2.22.2.24 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.151.2.22.2.25 $");
        php_info_print_table_row(2, "Schema support",
 #ifdef LIBXML_SCHEMAS_ENABLED
                "enabled");

http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/tests/bug41175.phpt?view=markup&rev=1.1
Index: php-src/ext/simplexml/tests/bug41175.phpt
+++ php-src/ext/simplexml/tests/bug41175.phpt

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

Reply via email to