john Fri Mar 12 11:28:29 2004 EDT Modified files: /php-src/ext/curl interface.c Log: Opps. Shouldn't look at the value, just the type http://cvs.php.net/diff.php/php-src/ext/curl/interface.c?r1=1.36&r2=1.37&ty=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.36 php-src/ext/curl/interface.c:1.37 --- php-src/ext/curl/interface.c:1.36 Fri Mar 12 11:12:47 2004 +++ php-src/ext/curl/interface.c Fri Mar 12 11:28:28 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interface.c,v 1.36 2004/03/12 16:12:47 john Exp $ */ +/* $Id: interface.c,v 1.37 2004/03/12 16:28:28 john Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -501,7 +501,7 @@ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot call the CURLOPT_READFUNCTION"); length = -1; } else { - if(Z_STRVAL_P(retval_ptr)) { + if(Z_TYPE_P(retval_ptr) == IS_STRING) { memcpy(data, Z_STRVAL_P(retval_ptr), size * nmemb); length = Z_STRLEN_P(retval_ptr); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php