cvs: pear /PHP_Compat/Compat/Function setrawcookie.php
| From: | James Wade | Date: | Fri, 01 May 2009 12:36:38 +0000 |
| Subject: | cvs: pear /PHP_Compat/Compat/Function setrawcookie.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-56022@lists.php.net to get a copy of this message | ||
hm2k Fri May 1 12:36:38 2009 UTC
Modified files:
/pear/PHP_Compat/Compat/Function setrawcookie.php
Log:
some of these arguments are optional (bug 16157)
http://cvs.php.net/viewvc.cgi/pear/PHP_Compat/Compat/Function/setrawcookie.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/PHP_Compat/Compat/Function/setrawcookie.php
diff -u pear/PHP_Compat/Compat/Function/setrawcookie.php:1.4
pear/PHP_Compat/Compat/Function/setrawcookie.php:1.5
--- pear/PHP_Compat/Compat/Function/setrawcookie.php:1.4 Mon Nov 24 10:42:01 2008
+++ pear/PHP_Compat/Compat/Function/setrawcookie.php Fri May 1 12:36:38 2009
@@ -5,14 +5,14 @@
* @category PHP
* @package PHP_Compat
* @license LGPL - http://www.gnu.org/licenses/lgpl.html
- * @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
+ * @copyright 2004-2009 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
* @link http://php.net/function.setrawcookie
* @author Stephan Schmidt <schst@php.net>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @since PHP 5.2.0 (Added optional httponly parameter)
* @require PHP 3 (setcookie)
*/
-function php_compat_setrawcookie($name, $value, $expire, $path, $domain, $secure, $httponly)
+function php_compat_setrawcookie($name, $value, $expire=0, $path=false, $domain=false,
$secure=false, $httponly=false)
{
// Following the idea on Matt Mecham's blog
// http://blog.mattmecham.com/archives/2006/09/http_only_cookies_without_php.html
@@ -24,7 +24,7 @@
// Define
if (!function_exists('setrawcookie')) {
- function setrawcookie($name, $value, $expire, $path, $domain, $secure, $httponly)
+ function setrawcookie($name, $value, $expire=0, $path=false, $domain=false, $secure=false,
$httponly=false)
{
return php_compat_setrawcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
}