X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_params.c;h=92c144154c8866d4af009ded0ef893eea51ed240;hp=b22769ef7531af5ac4dea2fc591deb618e0da77c;hb=8c68d26868c0605654517d6dc098a2b269e118ae;hpb=64eadf160ace89847f7be3b867fd4220e19ee516 diff --git a/src/php_http_params.c b/src/php_http_params.c index b22769e..92c1441 100644 --- a/src/php_http_params.c +++ b/src/php_http_params.c @@ -67,7 +67,11 @@ static inline zend_string *quote_string(zend_string *zs, zend_bool force) { size_t len = (zs)->len; +#if PHP_VERSION_ID < 70300 zs = php_addcslashes(zs, 0, ZEND_STRL("\0..\37\173\\\"")); +#else + zs = php_addcslashes(zs, ZEND_STRL("\0..\37\173\\\"")); +#endif if (force || len != (zs)->len || strpbrk((zs)->val, "()<>@,;:\"[]?={} ")) { int len = (zs)->len + 2; @@ -1286,7 +1290,7 @@ PHP_METHOD(HttpParams, offsetSet) } static zend_function_entry php_http_params_methods[] = { - PHP_ME(HttpParams, __construct, ai_HttpParams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR|ZEND_ACC_FINAL) + PHP_ME(HttpParams, __construct, ai_HttpParams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) PHP_ME(HttpParams, toArray, ai_HttpParams_toArray, ZEND_ACC_PUBLIC) PHP_ME(HttpParams, toString, ai_HttpParams_toString, ZEND_ACC_PUBLIC)