pajoye          Wed May 27 22:35:26 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/curl   interface.c php_curl.h 
  Log:
  - fix build, stderr cannot be used as var or struct member
  
http://cvs.php.net/viewvc.cgi/php-src/ext/curl/interface.c?r1=1.62.2.14.2.27.2.50&r2=1.62.2.14.2.27.2.51&diff_format=u
Index: php-src/ext/curl/interface.c
diff -u php-src/ext/curl/interface.c:1.62.2.14.2.27.2.50 
php-src/ext/curl/interface.c:1.62.2.14.2.27.2.51
--- php-src/ext/curl/interface.c:1.62.2.14.2.27.2.50    Tue May 26 15:49:15 2009
+++ php-src/ext/curl/interface.c        Wed May 27 22:35:26 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: interface.c,v 1.62.2.14.2.27.2.50 2009/05/26 15:49:15 jani Exp $ */
+/* $Id: interface.c,v 1.62.2.14.2.27.2.51 2009/05/27 22:35:26 pajoye Exp $ */
 
 #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 
@@ -1675,11 +1675,11 @@
                                        break;
                                case CURLOPT_STDERR:
                                        if (((php_stream *) what)->mode[0] != 
'r') {
-                                               if (ch->handlers->stderr) {
-                                                       
zval_ptr_dtor(&ch->handlers->stderr);
+                                               if (ch->handlers->std_err) {
+                                                       
zval_ptr_dtor(&ch->handlers->std_err);
                                                }
                                                zval_add_ref(zvalue);
-                                               ch->handlers->stderr = *zvalue;
+                                               ch->handlers->std_err = *zvalue;
                                                
zend_list_addref(Z_LVAL_PP(zvalue));
                                        } else {
                                                php_error_docref(NULL 
TSRMLS_CC, E_WARNING, "the provided file handle is not writable");
@@ -2283,7 +2283,7 @@
 #endif
 
        /* Prevent crash inside cURL if passed file has already been closed */
-       if (ch->handlers->stderr && Z_REFCOUNT_P(ch->handlers->stderr) <= 0) {
+       if (ch->handlers->std_err && Z_REFCOUNT_P(ch->handlers->std_err) <= 0) {
                curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr);
        }
 
@@ -2312,8 +2312,8 @@
        if (ch->handlers->passwd) {
                zval_ptr_dtor(&ch->handlers->passwd);
        }
-       if (ch->handlers->stderr) {
-               zval_ptr_dtor(&ch->handlers->stderr);
+       if (ch->handlers->std_err) {
+               zval_ptr_dtor(&ch->handlers->std_err);
        }
        if (ch->header.str_len > 0) {
                efree(ch->header.str);
http://cvs.php.net/viewvc.cgi/php-src/ext/curl/php_curl.h?r1=1.44.2.2.2.2.2.5&r2=1.44.2.2.2.2.2.6&diff_format=u
Index: php-src/ext/curl/php_curl.h
diff -u php-src/ext/curl/php_curl.h:1.44.2.2.2.2.2.5 
php-src/ext/curl/php_curl.h:1.44.2.2.2.2.2.6
--- php-src/ext/curl/php_curl.h:1.44.2.2.2.2.2.5        Tue May 26 15:49:15 2009
+++ php-src/ext/curl/php_curl.h Wed May 27 22:35:26 2009
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: php_curl.h,v 1.44.2.2.2.2.2.5 2009/05/26 15:49:15 jani Exp $ */
+/* $Id: php_curl.h,v 1.44.2.2.2.2.2.6 2009/05/27 22:35:26 pajoye Exp $ */
 
 #ifndef _PHP_CURL_H
 #define _PHP_CURL_H
@@ -107,7 +107,7 @@
        php_curl_write *write_header;
        php_curl_read  *read;
        zval           *passwd;
-       zval           *stderr;
+       zval           *std_err;
        php_curl_progress *progress;
 } php_curl_handlers;
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to