fix 5.2 build

This commit is contained in:
Greg Beaver 2008-02-11 04:48:58 +00:00
parent d768076206
commit 3874e12ee5
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -521,7 +521,7 @@ PHP_METHOD(Phar, webPhar)
zp[0] = &params;
#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

View File

@ -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