projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
36fa8b0
)
- http_request_method_*() API should have been available even since last release...
author
Michael Wallner
<mike@php.net>
Thu, 15 Sep 2005 13:52:46 +0000
(13:52 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 15 Sep 2005 13:52:46 +0000
(13:52 +0000)
http_functions.c
patch
|
blob
|
history
diff --git
a/http_functions.c
b/http_functions.c
index 617d223f1f335d381bdd085c04c7654c48a0dfa8..d3b81ea41cb9ffc44f1bafb274f0c9b4790111e7 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-20,6
+20,8
@@
#endif
#include "php.h"
#endif
#include "php.h"
+#include "zend_operators.h"
+
#include "SAPI.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "SAPI.h"
#include "php_ini.h"
#include "ext/standard/info.h"
@@
-1047,6
+1049,8
@@
PHP_FUNCTION(http_put_stream)
}
}
/* }}} */
}
}
/* }}} */
+#endif /* HTTP_HAVE_CURL */
+/* }}} HAVE_CURL */
/* {{{ proto long http_request_method_register(string method)
*
/* {{{ proto long http_request_method_register(string method)
*
@@
-1086,7
+1090,6
@@
PHP_FUNCTION(http_request_method_unregister)
case IS_OBJECT:
convert_to_string(method);
case IS_STRING:
case IS_OBJECT:
convert_to_string(method);
case IS_STRING:
-#include "zend_operators.h"
if (is_numeric_string(Z_STRVAL_P(method), Z_STRLEN_P(method), NULL, NULL, 1)) {
convert_to_long(method);
} else {
if (is_numeric_string(Z_STRVAL_P(method), Z_STRLEN_P(method), NULL, NULL, 1)) {
convert_to_long(method);
} else {
@@
-1154,8
+1157,6
@@
PHP_FUNCTION(http_request_method_name)
}
}
/* }}} */
}
}
/* }}} */
-#endif
-/* }}} HAVE_CURL */
/* {{{ Sara Golemons http_build_query() */
#ifndef ZEND_ENGINE_2
/* {{{ Sara Golemons http_build_query() */
#ifndef ZEND_ENGINE_2