projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- attempt to fix gcc-2.95 build by using less HTTP_HAVE_$EXT magic
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index adb44d2bb40671551bef04900554915dc12387c5..bf1e19393557e10c0105bec88a384c755ab7b2f7 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-21,7
+21,7
@@
#include "ext/standard/php_string.h"
#include "zend_operators.h"
#include "ext/standard/php_string.h"
#include "zend_operators.h"
-#ifdef H
AVE_PHP
_SESSION
+#ifdef H
TTP_HAVE
_SESSION
# include "ext/session/php_session.h"
#endif
# include "ext/session/php_session.h"
#endif
@@
-728,7
+728,7
@@
PHP_FUNCTION(http_redirect)
RETURN_FALSE;
}
RETURN_FALSE;
}
-#ifdef H
AVE_PHP
_SESSION
+#ifdef H
TTP_HAVE
_SESSION
/* append session info */
if (session) {
if (!params) {
/* append session info */
if (session) {
if (!params) {
@@
-1670,6
+1670,7
@@
PHP_FUNCTION(http_request)
}
/* }}} */
}
/* }}} */
+#ifdef HAVE_CURL_GETFORMDATA
static char *file_get_contents(char *file, size_t *len TSRMLS_DC)
{
php_stream *s = NULL;
static char *file_get_contents(char *file, size_t *len TSRMLS_DC)
{
php_stream *s = NULL;
@@
-1763,6
+1764,7
@@
PHP_FUNCTION(http_request_body_encode)
break;
}
}
break;
}
}
+#endif /* HAVE_CURL_GETFORMDATA */
#endif /* HTTP_HAVE_CURL */
/* }}} HAVE_CURL */
#endif /* HTTP_HAVE_CURL */
/* }}} HAVE_CURL */