Re: COOKIE section
| From: | Ferenc Kovacs | Date: | Wed, 20 Feb 2013 17:26:20 +0000 |
| Subject: | Re: COOKIE section | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-66809@lists.php.net to get a copy of this message | ||
On Tue, Jul 31, 2012 at 7:52 PM, Richard Lynch <ceo@l-i-e.com> wrote:
> I must be doing something incredibly stupid, because it's only 11
> lines...
>
> --TEST--
> Check that an opponent response works
> --COOKIE--
> side=left;game_id=1
> --FILE--
> <?php
> error_log(print_r($_COOKIE, 1)."\n", 3, './003_log.txt');
> require '../client.php';
> ?>
> --EXPECTF--
> {"opponent":"%r[0-9a-f]{32}%r"}
>
> ACTUAL OUTPUT in 003_log.txt
> Array
> (
> )
>
> EXPECTED OUTPUT
> Array
> (
> [side] => left
> [game_id] => 1
> )
>
>
>
>
hi,
running your snippet generates the expected output for me(apart the fact
that I don't have ../client.php so I commented out that line)
if you still have this problem could you paste your configure line, the
command what you use for executing the test and the contents of
your tmp-php.ini in your php-src directory?
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu