Commit: 2e14649c92fa441eb940093d68cd54ec2919b174 Author: Felipe Pena <felipe...@gmail.com> Tue, 12 Nov 2013 11:39:02 -0200 Parents: b133dbefe02ab717ac7a435ce16cc471fca06827 Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2e14649c92fa441eb940093d68cd54ec2919b174 Log: - Added check for malformed class::method syntax Changed paths: M phpdbg_utils.c Diff: diff --git a/phpdbg_utils.c b/phpdbg_utils.c index cb864c0..b509900 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -54,7 +54,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met const char *sep = strstr(str, "::"); size_t class_len, method_len; - if (!sep) { + if (!sep || sep == str || sep+2 == str+len-1) { return 0; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php