note 54994 added to ref.curl

From: Date: Thu, 21 Jul 2005 20:33:46 +0000
Subject: note 54994 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-92264@lists.php.net to get a copy of this message
One very-surprising(!) discovery... When using CURL, I inadvertantly used the name CURL_POST instead of CURLOPT_POST. I would have expected PHP to flag a syntax-error in this case, since (afaik) the identifier CURL_POST has no meaning, but it didn't say a thing. (The absence of "$" means that this is not a variable-name, and since there is no meaning that I know of for this name I don't know quite what PHP thought "CURL_POST" was supposed to be, nor why it thought the name was 'valid.') Anyway... this "doh!!" problem cost me a lot of time and grief. I suppose that "PHP is what PHP is," but do be on a special lookout for "tpyos" like these! ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54994 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54994&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54994&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92264) next »