svn: /php/php-src/ branches/PHP_5_3/ext/tidy/tidy.c trunk/ext/tidy/tidy.c

From: Date: Mon, 25 Apr 2011 09:28:08 +0000
Subject: svn: /php/php-src/ branches/PHP_5_3/ext/tidy/tidy.c trunk/ext/tidy/tidy.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-64837@lists.php.net to get a copy of this message
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;

« previous php.cvs (#64837) next »