|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-11-22 15:40 UTC] phpdev at ehrhardt dot nl
Description: ------------ The 2.0 release does not compile with VC11 (PHP 5.5.6) or VC9 (PHP 5.4.22). Test script: --------------- nmake php_http.dll Actual result: -------------- Error messages: Creating library Release\php_curl.lib and object Release\php_curl.exp Creating library Release\php_propro.lib and object Release\php_propro.exp Creating library Release\php_raphf.lib and object Release\php_raphf.exp php_http_client_curl.c c:\php-sdk\php55dev\ext\http\php_http_misc.h(101) : warning C4018: '<' : signed/ unsigned mismatch ext\http\php_http_client_curl.c(1768) : error C2143: syntax error : missing ';' before 'type' ext\http\php_http_client_curl.c(1770) : error C2065: 'curl' : undeclared identif ier ext\http\php_http_client_curl.c(1770) : error C2223: left of '->useevents' must point to struct/union ext\http\php_http_client_curl.c(1783) : error C2065: 'curl' : undeclared identif ier ext\http\php_http_client_curl.c(1783) : error C2223: left of '->unfinished' must point to struct/union NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0 \VC\BIN\cl.exe"' : return code '0x2' Stop. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Is not php_http_client_curl_t *curl a declaration? For MSVC they must be at the beginnen of a block. I will test now if this works as well: static int php_http_client_curl_once(php_http_client_t *h) { php_http_client_curl_t *curl; TSRMLS_FETCH_FROM_CTX(h->ts); #if PHP_HTTP_HAVE_EVENT curl = h->ctx; BTW: I ran into Propro and aphf yesterday. For Windows users: php_propro.dll and php_raphf.dll must be loaded before php_http.dll.I now have the code below, which builds fine for PHP 5.3.28-dev, 5.4.22 and 5.5.6. static STATUS php_http_client_curl_exec(php_http_client_t *h) { php_http_client_curl_t *curl; TSRMLS_FETCH_FROM_CTX(h->ts); #if PHP_HTTP_HAVE_EVENT curl = h->ctx;