#42951 [Opn->Csd]: Spelling mistake

From: Date: Sat, 13 Oct 2007 11:39:44 +0000
Subject: #42951 [Opn->Csd]: Spelling mistake
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118503@lists.php.net to get a copy of this message
ID: 42951 Updated by: bjori@php.net 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

« previous php.bugs (#118503) next »