diff options
author | Antony Dovgal <tony2001@php.net> | 2006-08-31 16:15:24 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-08-31 16:15:24 +0000 |
commit | 75b8cd741ba23dbf1ae75b50484d69d1aa70e7f3 (patch) | |
tree | 156e407d75b817b93b87b74690d0b0fac7ac79c4 /ext/imap/php_imap.c | |
parent | 50e9994b2c36eae24de34c4c5088f4bd9686fe07 (diff) | |
download | php-git-75b8cd741ba23dbf1ae75b50484d69d1aa70e7f3.tar.gz |
last portion of z/Z fixes
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 21efa0b244..dcaa200ead 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1876,14 +1876,14 @@ PHP_FUNCTION(imap_fetchbody) Save a specific body section to a file */ PHP_FUNCTION(imap_savebody) { - zval *stream, *out; + zval *stream, **out; pils *imap_ptr = NULL; php_stream *writer = NULL; char *section = ""; int section_len = 0, close_stream = 1; long msgno, flags = 0; - if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rzl|sl", &stream, &out, &msgno, §ion, §ion_len, &flags)) { + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rZl|sl", &stream, &out, &msgno, §ion, §ion_len, &flags)) { RETURN_FALSE; } @@ -1893,17 +1893,17 @@ PHP_FUNCTION(imap_savebody) RETURN_FALSE; } - switch (Z_TYPE_P(out)) + switch (Z_TYPE_PP(out)) { case IS_LONG: case IS_RESOURCE: close_stream = 0; - php_stream_from_zval(writer, &out); + php_stream_from_zval(writer, out); break; default: - convert_to_string_ex(&out); - writer = php_stream_open_wrapper(Z_STRVAL_P(out), "wb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); + convert_to_string_ex(out); + writer = php_stream_open_wrapper(Z_STRVAL_PP(out), "wb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); break; } |