com php-src: Only show req attribute if given: phpdbg_utils .c

From: Date: Thu, 09 Oct 2014 12:54:47 +0000
Subject: com php-src: Only show req attribute if given: phpdbg_utils .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82567@lists.php.net to get a copy of this message
Commit: e72b00b1ec57d7217731d05a881b8c244d1e5325 Author: Bob Weinand <bobwei9@hotmail.com> Thu, 9 Oct 2014 14:54:47 +0200 Parents: f4f9e39faaef3227e13a57d7c4392e95d0e1caba Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e72b00b1ec57d7217731d05a881b8c244d1e5325 Log: Only show req attribute if given Changed paths: M phpdbg_utils.c Diff: diff --git a/phpdbg_utils.c b/phpdbg_utils.c index c213702..6c65ebe 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -780,8 +780,13 @@ static int format_converter(register buffy *odp, const char *fmt, zend_bool esca case 'r': - s_len = spprintf(&s, 0, "req=\"%lu\"", PHPDBG_G(req_id)); - free_s = s; + if (PHPDBG_G(req_id)) { + s_len = spprintf(&s, 0, "req=\"%lu\"", PHPDBG_G(req_id)); + free_s = s; + } else { + s = ""; + s_len = 0; + } break;

« previous php.cvs (#82567) next »