cvs: php4 /ext/session/ session.c

From: Date: Thu, 08 Jun 2000 23:42:07 +0000
Subject: cvs: php4 /ext/session/ session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90@lists.php.net to get a copy of this message
sas Thu Jun 8 16:42:07 2000 EDT Modified files: /php4/ext/session session.c Log: Fix format strings. cache_expire's type was changed to long. Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.143 php4/ext/session/session.c:1.144 --- php4/ext/session/session.c:1.143 Mon Jun 5 12:47:44 2000 +++ php4/ext/session/session.c Thu Jun 8 16:42:04 2000 @@ -544,7 +544,7 @@ strcat_gmt(buf, &now); ADD_COOKIE(buf); - sprintf(buf, "Cache-Control: public, max-age=%d", PS(cache_expire) * 60); + sprintf(buf, "Cache-Control: public, max-age=%ld", PS(cache_expire) * 60); ADD_COOKIE(buf); last_modified(); @@ -555,7 +555,7 @@ char buf[MAX_STR + 1]; ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); - sprintf(buf, "Cache-Control: private, max-age=%d, pre-check=%d", PS(cache_expire) * 60, PS(cache_expire) * 60); + sprintf(buf, "Cache-Control: private, max-age=%ld, pre-check=%ld", PS(cache_expire) * 60, PS(cache_expire) * 60); ADD_COOKIE(buf); last_modified();

« previous php.cvs (#90) next »