com php-src: fix duplicate message on print .func if no active class: phpdbg_print.c
| From: | Bob Weinand | Date: | Thu, 14 Nov 2013 12:29:23 +0000 |
| Subject: | com php-src: fix duplicate message on print .func if no active class: phpdbg_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74978@lists.php.net to get a copy of this message | ||
Commit: 187d1c726bc58ff001ed4baf29b76de28a3e92fe
Author: krakjoe <joe.watkins@live.co.uk> Thu, 14 Nov 2013 12:29:23 +0000
Parents: 4283b125c9b63a57283a28d70614b342d6c3fe75
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=187d1c726bc58ff001ed4baf29b76de28a3e92fe
Log:
fix duplicate message on print .func if no active class
Changed paths:
M phpdbg_print.c
Diff:
diff --git a/phpdbg_print.c b/phpdbg_print.c
index f337de0..ca55255 100644
--- a/phpdbg_print.c
+++ b/phpdbg_print.c
@@ -178,7 +178,7 @@ PHPDBG_PRINT(func) /* {{{ */
func_table = &EG(scope)->function_table;
} else {
phpdbg_error("No active class");
- return FAILURE;
+ return SUCCESS;
}
} else if (!EG(function_table)) {
phpdbg_error("No function table loaded");