pajoye                                   Mon, 25 Apr 2011 09:28:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=310466

Log:
- keep inode creation check

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/tidy/tidy.c
    U   php/php-src/trunk/ext/tidy/tidy.c

Modified: php/php-src/branches/PHP_5_3/ext/tidy/tidy.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/tidy/tidy.c        2011-04-25 07:50:07 UTC 
(rev 310465)
+++ php/php-src/branches/PHP_5_3/ext/tidy/tidy.c        2011-04-25 09:28:08 UTC 
(rev 310466)
@@ -991,6 +991,10 @@
                        break;
        }

+       if (!inode) {
+               RETURN_NULL();
+       }
+
        tidy_instanciate(tidy_ce_node, return_value TSRMLS_CC);
        newobj = (PHPTidyObj *) zend_object_store_get_object(return_value 
TSRMLS_CC);
        newobj->type  = is_node;

Modified: php/php-src/trunk/ext/tidy/tidy.c
===================================================================
--- php/php-src/trunk/ext/tidy/tidy.c   2011-04-25 07:50:07 UTC (rev 310465)
+++ php/php-src/trunk/ext/tidy/tidy.c   2011-04-25 09:28:08 UTC (rev 310466)
@@ -987,6 +987,10 @@
                        break;
        }

+       if (!inode) {
+               RETURN_NULL();
+       }
+
        tidy_instanciate(tidy_ce_node, return_value TSRMLS_CC);
        newobj = (PHPTidyObj *) zend_object_store_get_object(return_value 
TSRMLS_CC);
        newobj->type  = is_node;

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

Reply via email to