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