diff options
| author | foobar <sniper@php.net> | 2005-12-06 01:04:42 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-12-06 01:04:42 +0000 |
| commit | 1c0ece71495ea13c69e018437478a7289e538341 (patch) | |
| tree | 7c9eb4b8aede5f8c5f04645c44f6e0ff959503e1 /main/main.c | |
| parent | fae94910ae35c075a3fbbfbff5721d3c981e0c59 (diff) | |
| download | php-git-1c0ece71495ea13c69e018437478a7289e538341.tar.gz | |
- nuke php3 legacy
Diffstat (limited to 'main/main.c')
| -rw-r--r-- | main/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c index f2195624fb..c7609474b4 100644 --- a/main/main.c +++ b/main/main.c @@ -679,7 +679,7 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c zval *tmp; ALLOC_INIT_ZVAL(tmp); ZVAL_STRINGL(tmp, buffer, buffer_len, 1); - zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) &tmp, sizeof(pval *), NULL); + zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) &tmp, sizeof(zval *), NULL); } efree(buffer); } @@ -935,14 +935,14 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ return; } if (PG(track_errors) && module_initialized && EG(active_symbol_table)) { - pval *tmp; + zval *tmp; ALLOC_ZVAL(tmp); INIT_PZVAL(tmp); Z_STRVAL_P(tmp) = (char *) estrndup(buffer, buffer_len); Z_STRLEN_P(tmp) = buffer_len; Z_TYPE_P(tmp) = IS_STRING; - zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) & tmp, sizeof(pval *), NULL); + zend_hash_update(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **) & tmp, sizeof(zval *), NULL); } efree(buffer); } |
