com php-src: fixed set process_title(): sapi/cli/php _cli_process_title.c
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 10:14:16 +0000 |
| Subject: | com php-src: fixed set process_title(): sapi/cli/php _cli_process_title.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73460@lists.php.net to get a copy of this message | ||
Commit: 659d7ca634bd890a207553903a8e33e2af663c0a
Author: Anatol Belski <ab@php.net> Fri, 23 Aug 2013 07:12:56 -0700
Parents: 84e13901b0ec7041ea7d85b383577dcd968e9384
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=659d7ca634bd890a207553903a8e33e2af663c0a
Log:
fixed set process_title()
Changed paths:
M sapi/cli/php_cli_process_title.c
Diff:
diff --git a/sapi/cli/php_cli_process_title.c b/sapi/cli/php_cli_process_title.c
index c50c412..c959bc6 100644
--- a/sapi/cli/php_cli_process_title.c
+++ b/sapi/cli/php_cli_process_title.c
@@ -31,10 +31,10 @@
PHP_FUNCTION(cli_set_process_title)
{
char *title = NULL;
- int title_len;
+ zend_str_size_int title_len;
int rc;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &title, &title_len)
== FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &title, &title_len)
== FAILURE) {
return;
}