fix master
authorMichael Wallner <mike@php.net>
Wed, 3 Apr 2019 12:05:21 +0000 (14:05 +0200)
committerMichael Wallner <mike@php.net>
Wed, 3 Apr 2019 12:05:21 +0000 (14:05 +0200)
php_apfd.c

index da178eb7b3ab65bd0a9f77e1e9136666bd97f730..48e767f62eecac61caa7c86c9895ecffaf05e1ef 100644 (file)
@@ -96,6 +96,10 @@ static inline void apfd_update(struct apfd *apfd TSRMLS_DC)
 
 PHP_RINIT_FUNCTION(apfd)
 {
 
 PHP_RINIT_FUNCTION(apfd)
 {
+#ifndef TSRMLS_C
+# define TSRMLS_C
+# define TSRMLS_CC
+#endif
        /* populate form data on non-POST requests */
        if (SG(request_info).request_method && strcasecmp(SG(request_info).request_method, "POST") && SG(request_info).content_type && *SG(request_info).content_type) {
                char *ct_str, *ct_dup = estrdup(SG(request_info).content_type);
        /* populate form data on non-POST requests */
        if (SG(request_info).request_method && strcasecmp(SG(request_info).request_method, "POST") && SG(request_info).content_type && *SG(request_info).content_type) {
                char *ct_str, *ct_dup = estrdup(SG(request_info).content_type);