svn: /web/php/trunk/ ws.php
| From: | Rasmus Lerdorf | Date: | Sun, 17 Jul 2011 00:26:24 +0000 |
| Subject: | svn: /web/php/trunk/ ws.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11671@lists.php.net to get a copy of this message | ||
rasmus Sun, 17 Jul 2011 00:26:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313302
Log:
Should be ttl here
Changed paths:
U web/php/trunk/ws.php
Modified: web/php/trunk/ws.php
===================================================================
--- web/php/trunk/ws.php 2011-07-17 00:02:14 UTC (rev 313301)
+++ web/php/trunk/ws.php 2011-07-17 00:26:24 UTC (rev 313302)
@@ -49,7 +49,7 @@
$data = trim(stream_get_contents($fp));
fclose($fp);
}
- if(!$mtime || ($time_out && ($mtime < ($_SERVER['REQUEST_TIME']-$time_out))))
{
+ if(!$mtime || ($time_out && ($mtime < ($_SERVER['REQUEST_TIME']-$ttl)))) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);