mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
fix 5.2 build
This commit is contained in:
parent
d768076206
commit
3874e12ee5
@ -2418,7 +2418,7 @@ int phar_flush(phar_archive_data *phar, char *user_stub, long len, char **error
|
||||
array_init(&filterparams);
|
||||
/* ext/zlib zval_dtors a separated zval, so we have to make sure it doesn't destroy ours */
|
||||
#if PHP_VERSION_ID < 50300
|
||||
filterparams->refcount = 26;
|
||||
filterparams.refcount = 26;
|
||||
#else
|
||||
Z_SET_REFCOUNT(filterparams, 26);
|
||||
#endif
|
||||
|
@ -521,7 +521,7 @@ PHP_METHOD(Phar, webPhar)
|
||||
zp[0] = ¶ms;
|
||||
|
||||
#if PHP_VERSION_ID < 50300
|
||||
if (FAILURE == zend_fcall_info_init(rewrite, &fci, &fcc, NULL TSRMLS_CC)) {
|
||||
if (FAILURE == zend_fcall_info_init(rewrite, &fci, &fcc TSRMLS_CC)) {
|
||||
#else
|
||||
if (FAILURE == zend_fcall_info_init(rewrite, 0, &fci, &fcc, NULL, NULL TSRMLS_CC)) {
|
||||
#endif
|
||||
@ -2448,7 +2448,7 @@ PHP_METHOD(Phar, copy)
|
||||
*newentry.metadata = *t;
|
||||
zval_copy_ctor(newentry.metadata);
|
||||
#if PHP_VERSION_ID < 50300
|
||||
newentry.metadata.refcount = 1;
|
||||
newentry.metadata->refcount = 1;
|
||||
#else
|
||||
Z_SET_REFCOUNT_P(newentry.metadata, 1);
|
||||
#endif
|
||||
|
@ -603,7 +603,7 @@ int phar_tar_flush(phar_archive_data *phar, char *user_stub, long len, char **er
|
||||
array_init(&filterparams);
|
||||
/* ext/zlib zval_dtors a separated zval, so we have to make sure it doesn't destroy ours */
|
||||
#if PHP_VERSION_ID < 50300
|
||||
filterparams->refcount = 26;
|
||||
filterparams.refcount = 26;
|
||||
#else
|
||||
Z_SET_REFCOUNT(filterparams, 26);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user