ID:               42951
 Updated by:       [EMAIL PROTECTED]
 Reported By:      corre dot t at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         cURL related
 Operating System: Windows XP
 PHP Version:      5.2.4
 New Comment:

Thanks, fixed.


Previous Comments:
------------------------------------------------------------------------

[2007-10-12 14:43:47] corre dot t at gmail dot com

Description:
------------
There is a spelling mistake in an error of PHP.
It write interger instead of integer.

Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys
must be CURLOPT constants or equivalent interger values. in ...

Reproduce code:
---------------
        $CURLOPT = array(
                'CURLOPT_URL' =>
'https://www.creditmutuel.fr/cmm/fr/specif/image/logo_fede_web.jpg',
                'CURLOPT_HEADER' => 'false',
                'CURLOPT_FILE' => $fp,
        );

instead of:

        $CURLOPT = array(
                CURLOPT_URL =>
'https://www.creditmutuel.fr/cmm/fr/specif/image/logo_fede_web.jpg',
                CURLOPT_HEADER => 'false',
                CURLOPT_FILE => $fp,
        );

Expected result:
----------------
Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys
must be CURLOPT constants or equivalent integer values. in ...

Actual result:
--------------
Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys
must be CURLOPT constants or equivalent interger values. in ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42951&edit=1

Reply via email to