facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.15k stars 2.99k forks source link

Silex authentication issue - json_encode of recursive ArrayObject #3328

Closed maurocolella closed 10 years ago

maurocolella commented 10 years ago

Hi,

I am using the Silex framework, by Sensiolabs (authors of Symfony), and facing a problem with authentication. Authentication itself works on HHVM, sessions work on HHVM, but user data is volatile: past the authentication, users find themselves logged out immediately.

I have filed a bug report with the authors of Silex, however I thought it made sense to also bring the issue to the attention of the developers of HHVM.

See: https://github.com/silexphp/Silex/issues/992

For details.

LiraNuna commented 10 years ago

An isolated test case will accelerate a fix for this issue, without one, we need to have more context and spend more time to fix it.

fredemmott commented 10 years ago

Based on the discussion on silexphp/Silex#992, I think it's the PHP5.5 change here:

<?php

$foo = new ArrayObject();
$foo[] = $foo;
var_dump(json_encode($foo));

http://3v4l.org/B11YU

SiebelsTim commented 10 years ago

@fredemmott this is fixed in faeab0be53b3