Doc #64443 [NEW]: "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned"

From: Date: Sun, 17 Mar 2013 18:53:57 +0000
Subject: Doc #64443 [NEW]: "CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned"
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9662@lists.php.net to get a copy of this message
From:             alhabshi3k at gmail dot com
Operating system: windows
PHP version:      5.4.13
Package:          cURL related
Bug Type:         Documentation Problem
Bug description:"CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned"

Description:
------------
---
From manual page:
http://www.php.net/function.curl-multi-exec#refsect1-function.curl-multi-exec-examples
---
In: Example #1 curl_multi_exec() , executing curl_multi_exec and processing
url channels handles based on CURLM_CALL_MULTI_PERFORM defined constant
will no be valid. This is due the development in libCurl that is decided by
its team. this is issue is found in LibCurl version 7.20.0 and above, where
"CURLM_CALL_MULTI_PERFORM is deprecated and will never be returned,as
documented" (1)

The PHP 5.4.12 extension of curl is based on  LibCurl 7.27.0. 

Therefore, the example runs until timeout.with out a valid result. 

Reference :
(1) http://comments.gmane.org/gmane.comp.web.curl.library/36537


Test script:
---------------
//execute the handles (scrap from Example #1 curl_multi_exec ) where the
problem.

do {
    $mrc = curl_multi_exec($mh, $active);
} while ($mrc == CURLM_CALL_MULTI_PERFORM);

while ($active && $mrc == CURLM_OK) {
    if (curl_multi_select($mh) != -1) {
        do {
            $mrc = curl_multi_exec($mh, $active);
        } while ($mrc == CURLM_CALL_MULTI_PERFORM);
    }
}
//--------------------------------------
/*  The old code example work like charm , as in these cases
do {    curl_multi_exec($mh,$active);  }  while ($active > 0);
*/

Expected result:
----------------
- output of urls resource contents.
- $mrc variable should rotate values of active running handle count.
- CURLM_CALL_MULTI_PERFORM should count of actual handles in the stack,if
it is valid.

Actual result:
--------------
timeout... :(

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64443&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=64443&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=64443&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=64443&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64443&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64443&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64443&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64443&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64443&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64443&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64443&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=64443&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=64443&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64443&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64443&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64443&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64443&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64443&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64443&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64443&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64443&r=mysqlcfg



Thread (2 messages)

« previous php.doc.bugs (#9662) next »