#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
-#include "ext/standard/base64.h"
#include "SAPI.h"
+#include "ext/standard/base64.h"
#include "php_http.h"
#include "php_http_api.h"
HTTP_GSC(zauth, "HTTP_AUTHORIZATION", FAILURE);
{
int decoded_len;
- char *colon, *decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len);
+ char *colon, *decoded = (char *) php_base64_decode((const unsigned char *) Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len);
if (colon = strchr(decoded + 6, ':')) {
*user = estrndup(decoded + 6, colon - decoded - 6);