summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-08-31 16:14:43 +0000
committerAntony Dovgal <tony2001@php.net>2006-08-31 16:14:43 +0000
commita10691e3b90dd5a59eccf4a04253efcd82077710 (patch)
treeff63111c4171f5aad0fd2b9faadce52829ab3ccf /ext/imap
parentd10b686b6e47c58c96aa333be94a0e69b4df8ffb (diff)
downloadphp-git-a10691e3b90dd5a59eccf4a04253efcd82077710.tar.gz
last portion of z/Z fixes
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index d148fffad6..f9a99be356 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -1872,14 +1872,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, &section, &section_len, &flags)) {
+ if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rZl|sl", &stream, &out, &msgno, &section, &section_len, &flags)) {
RETURN_FALSE;
}
@@ -1889,17 +1889,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, NULL);
+ convert_to_string_ex(out);
+ writer = php_stream_open_wrapper(Z_STRVAL_PP(out), "wb", REPORT_ERRORS, NULL);
break;
}