diff options
| author | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
|---|---|---|
| committer | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
| commit | c03328857394bef36ffa9678d33079ad96e4a4e4 (patch) | |
| tree | c0fb250db3b1bb996fc305bf56c2b74eb6d00935 /sapi/pi3web/pi3web_sapi.c | |
| parent | 158d34c9a57816326e141e88e1409d9f377dc2ea (diff) | |
| download | php-git-c03328857394bef36ffa9678d33079ad96e4a4e4.tar.gz | |
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
Diffstat (limited to 'sapi/pi3web/pi3web_sapi.c')
| -rw-r--r-- | sapi/pi3web/pi3web_sapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index a1bb15f527..33cc78613b 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -355,9 +355,9 @@ static void hash_pi3web_variables(TSRMLS_D) } *colon = 0; INIT_PZVAL(entry); - entry->value.str.len = strlen(value); - entry->value.str.val = estrndup(value, entry->value.str.len); - entry->type = IS_STRING; + Z_STRLEN_P(entry) = strlen(value); + Z_STRVAL_P(entry) = estrndup(value, Z_STRLEN_P(entry)); + Z_TYPE_P(entry) = IS_STRING; zend_hash_add(&EG(symbol_table), variable, strlen(variable)+1, &entry, sizeof(zval *), NULL); *colon = ':'; } @@ -379,7 +379,7 @@ DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) zend_first_try { file_handle.filename = lpCB->lpszFileName; file_handle.free_filename = 0; - file_handle.type = ZEND_HANDLE_FILENAME; + Z_TYPE(file_handle) = ZEND_HANDLE_FILENAME; file_handle.opened_path = NULL; CG(extended_info) = 0; |
