cvs: php-src(PHP_5_2) /ext/tidy tidy.c
| From: | Nuno Lopes | Date: | Sat, 20 Jan 2007 12:27:18 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/tidy tidy.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42827@lists.php.net to get a copy of this message | ||
nlopess Sat Jan 20 12:27:18 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/tidy tidy.c
Log:
fix crash. tests will follow
http://cvs.php.net/viewvc.cgi/php-src/ext/tidy/tidy.c?r1=1.66.2.8.2.18&r2=1.66.2.8.2.19&diff_format=u
Index: php-src/ext/tidy/tidy.c
diff -u php-src/ext/tidy/tidy.c:1.66.2.8.2.18 php-src/ext/tidy/tidy.c:1.66.2.8.2.19
--- php-src/ext/tidy/tidy.c:1.66.2.8.2.18 Fri Jan 19 18:50:26 2007
+++ php-src/ext/tidy/tidy.c Sat Jan 20 12:27:18 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tidy.c,v 1.66.2.8.2.18 2007/01/19 18:50:26 nlopess Exp $ */
+/* $Id: tidy.c,v 1.66.2.8.2.19 2007/01/20 12:27:18 nlopess Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -988,7 +988,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Tidy support", "enabled");
php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate());
- php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.66.2.8.2.18 2007/01/19 18:50:26 nlopess Exp $)");
+ php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.66.2.8.2.19 2007/01/20 12:27:18 nlopess Exp $)");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -1565,7 +1565,7 @@
{
TIDY_FETCH_ONLY_OBJECT;
- if (tidyGetNext(obj->node)) {
+ if (obj->node && tidyGetNext(obj->node)) {
RETURN_TRUE;
} else {
RETURN_FALSE;