projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix #73
[m6w6/ext-http]
/
src
/
php_http_misc.c
diff --git
a/src/php_http_misc.c
b/src/php_http_misc.c
index 4adab8112923c0dd2569b97f02de8c2fe2aa7310..064598cea3db9c992f9d1685990fe1178fd537dd 100644
(file)
--- a/
src/php_http_misc.c
+++ b/
src/php_http_misc.c
@@
-12,18
+12,18
@@
#include "php_http_api.h"
#include "php_http_api.h"
-#include
<ext/standard/php_lcg.h>
-#include
<zend_exceptions.h>
+#include
"ext/standard/php_lcg.h"
+#include
"zend_exceptions.h"
/* SLEEP */
void php_http_sleep(double s)
{
/* SLEEP */
void php_http_sleep(double s)
{
-#if
defined(PHP_WIN32)
+#if
PHP_WIN32
Sleep((DWORD) PHP_HTTP_MSEC(s));
Sleep((DWORD) PHP_HTTP_MSEC(s));
-#elif
defined(HAVE_USLEEP)
+#elif
HAVE_USLEEP
usleep(PHP_HTTP_USEC(s));
usleep(PHP_HTTP_USEC(s));
-#elif
defined(HAVE_NANOSLEEP)
+#elif
HAVE_NANOSLEEP
struct timespec req, rem;
req.tv_sec = (time_t) s;
struct timespec req, rem;
req.tv_sec = (time_t) s;
@@
-190,7
+190,7
@@
int php_http_array_apply_append_func(zval *value, int num_args, va_list args, ze
if (flags & ARRAY_JOIN_STRINGIFY) {
convert_to_string_ex(value);
}
if (flags & ARRAY_JOIN_STRINGIFY) {
convert_to_string_ex(value);
}
- Z_ADDREF_P(value);
+ Z_
TRY_
ADDREF_P(value);
if (data) {
if (Z_TYPE_P(data) != IS_ARRAY) {
if (data) {
if (Z_TYPE_P(data) != IS_ARRAY) {