cvs: php4 /ext/domxml php_domxml.c
| From: | Joey Smith | Date: | Sun, 26 Aug 2001 11:36:28 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7069@lists.php.net to get a copy of this message | ||
joey Sun Aug 26 07:36:28 2001 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
Fix 1st case of #9893. 2nd case was already fixed in previous commit.
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.68 php4/ext/domxml/php_domxml.c:1.69
--- php4/ext/domxml/php_domxml.c:1.68 Tue Aug 21 17:49:32 2001
+++ php4/ext/domxml/php_domxml.c Sun Aug 26 07:36:27 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.68 2001/08/21 21:49:32 joey Exp $ */
+/* $Id: php_domxml.c,v 1.69 2001/08/26 11:36:27 joey Exp $ */
#ifdef HAVE_CONFIG_H
@@ -2559,6 +2559,12 @@
int ret;
id = getThis();
+
+ if (!id) {
+ php_error(E_ERROR, "Invalid object");
+ RETURN_FALSE;
+ }
+
docp = php_dom_get_object(id, le_domxmldocp, 0 TSRMLS_CC);
#if defined(LIBXML_XPTR_ENABLED)