#34545 [NEW]: TIMECOND_IFMODSINCE not implemented for many years???
| From: | mshonich at yandex dot ru | Date: | Sun, 18 Sep 2005 23:28:47 +0000 |
| Subject: | #34545 [NEW]: TIMECOND_IFMODSINCE not implemented for many years??? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85215@lists.php.net to get a copy of this message | ||
From: mshonich at yandex dot ru
Operating system: any
PHP version: 4.4.0
PHP Bug Type: cURL related
Bug description: TIMECOND_IFMODSINCE not implemented for many years???
Description:
------------
Docs `bout curl_setopt notice the CURLOPT_TIMECOND and CURLOPT_TIMEVALUE
options. Specifically:
<i>CURLOPT_TIMEVALUE: Pass a long as a parameter that is the time in
seconds since January 1st, 1970. The time will be used as specified by the
CURLOPT_TIMEVALUE option, or by default the TIMECOND_IFMODSINCE will be
used. </i>
First of all, documentation is confusing: IMHO it should be read <i>The
time will be used as specified by the CURLOPT_TIMECOND option, or by
default the TIMECOND_IFMODSINCE will be used. </i>
Second, it is completely wrong: If you only specify CURLOPT_TIMEVALUE
without CURLOPT_TIMECOND, then nothing will happen - If-Modified-Since
header won't be send. Thus default behaviour is not TIMECOND_IFMODSINCE.
Next big thing about this bug is that TIMECOND_IFMODSINCE was never
defined for astonishing high number of major releases. One can use
curl_setopt(CURLOPT_TIMECOND, 1) as a workaround, but it is darn
unconvient.
--
Edit bug report at http://bugs.php.net/?id=34545&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34545&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34545&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34545&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34545&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34545&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34545&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34545&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34545&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34545&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34545&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34545&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34545&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34545&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34545&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34545&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34545&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34545&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34545&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34545&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34545&r=mysqlcfg