com php-src: fixed sapi/embed: sapi/embed/php_embed.c
| From: | Anatol Belski | Date: | Fri, 13 Dec 2013 23:26:56 +0000 |
| Subject: | com php-src: fixed sapi/embed: sapi/embed/php_embed.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74428@lists.php.net to get a copy of this message | ||
Commit: 4c68e810183f6b02ce7c2731ddecb4aca14c87f3
Author: Anatol Belski <ab@php.net> Sat, 14 Dec 2013 00:26:56 +0100
Parents: 009528ba439b6866ed498c40864ced33005e838c
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4c68e810183f6b02ce7c2731ddecb4aca14c87f3
Log:
fixed sapi/embed
Changed paths:
M sapi/embed/php_embed.c
Diff:
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index 414b4db..0ed475c 100644
--- a/sapi/embed/php_embed.c
+++ b/sapi/embed/php_embed.c
@@ -44,10 +44,10 @@ static int php_embed_deactivate(TSRMLS_D)
return SUCCESS;
}
-static inline size_t php_embed_single_write(const char *str, uint str_length)
+static inline size_t php_embed_single_write(const char *str, zend_str_size_uint str_length)
{
#ifdef PHP_WRITE_STDOUT
- long ret;
+ php_int_t ret;
ret = write(STDOUT_FILENO, str, str_length);
if (ret <= 0) return 0;
@@ -61,10 +61,10 @@ static inline size_t php_embed_single_write(const char *str, uint str_length)
}
-static int php_embed_ub_write(const char *str, uint str_length TSRMLS_DC)
+static zend_str_size_int php_embed_ub_write(const char *str, zend_str_size_uint str_length
TSRMLS_DC)
{
const char *ptr = str;
- uint remaining = str_length;
+ zend_str_size_uint remaining = str_length;
size_t ret;
while (remaining > 0) {