summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-04-24 13:54:59 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-04-24 13:54:59 +0000
commitbc9f8f582cefd55140d00d731949502f1e66f9b9 (patch)
treed6fc77f3c6c05ef2815c6e4825dc4de693d5bad8 /ext/simplexml/simplexml.c
parentc8925ba49306bd9e623770f6ff055ae6639776a0 (diff)
downloadphp-git-bc9f8f582cefd55140d00d731949502f1e66f9b9.tar.gz
Fixed bug #41175 (addAttribute() fails to add an attribute with an empty
value).
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 2c919ea24f..0b0f9ff54b 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1542,7 +1542,7 @@ SXE_METHOD(addAttribute)
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;
}