1--TEST-- 2GH-9200: setcookie has an obsolete expires date format 3--INI-- 4session.cookie_lifetime=3600 5--EXTENSIONS-- 6session 7--CGI-- 8--FILE-- 9<?php 10session_name("foo"); 11session_id('bar'); 12session_start(); 13 14foreach (headers_list() as $header) { 15 if (preg_match('/^Set-Cookie: foo=bar; expires=(Mon|Tue|Wed|Thu|Fri|Sat|Sun), [0-9][0-9] (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) 2[0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] GMT; Max-Age=3600; path=\\/$/', $header)) { 16 echo "Success", PHP_EOL; 17 exit; 18 } 19} 20echo "Fail", PHP_EOL; 21?> 22--EXPECT-- 23Success 24