Would a PHP Error not work in this case? Or would the error then be interpreted
as the result?
> On 14 Jul 2015, at 23:04, Sammy Kaye Powers wrote:
>
> Hello lovely PHP nerds,
>
> There are two open PR's for PHP7 to modify the behavior of the CSPRNG's:
>
> https://github.com/php/php-src/pull
I have updated the RFC with a new section showing the updates
Sent from my iPhone
> On 13 Jul 2015, at 20:47, Benjamin Eberlei wrote:
>
> On Mon, Jul 13, 2015 at 3:22 PM, Dean Eigenmann
> wrote:
>
>> Ive just opened a new RFC https://wiki.php.net/rfc/jsonserializable
Ryan,
I think the usage of this won't support multidimensional arrays.
However in the decode function,
You could specify
Foreach ($arr['permission'] as $permission) {
$this->permissions[] = (permission) json_decode($permission);
}
Sent from my iPhone
On 13 Jul 2015, at 17:03, Ryan Pallas wro
I will update the spec for it to be a function, called something like
json_decode_to($json, $class, $mapping = []);
With mapping you could then specify with array keys map to which class property.
Sent from my iPhone
> On 13 Jul 2015, at 16:59, Rowan Collins wrote:
>
> guilhermebla...@gmail.c
I think the suggested decode function would be the best way to handle this.
On Jul 13, 2015, at 04:20 PM, "guilhermebla...@gmail.com"
wrote:
What about JsonDeserializable? I would like to have the choice to have a
serialize-only operation.
On Mon, Jul 13, 2015 at 10:13 AM, Dean
, the third
may include serious bc concerns.
Wouldn't an additional function (maybe in addition to your proposed
interface; example: json_decode_to(string $json, string $className,
int $options)) solve the issue without changing the language?
Regards,
2015-07-13 15:22 GMT+02:00 Dean Eigenmann
Ive just opened a new RFC https://wiki.php.net/rfc/jsonserializable regarding
Json to Object unserialization.
Hey,
Could I please have RFC Karma for my wiki account, (user: decanus) as I would
like to create an RFC for my concept
https://decanus.github.io/JsonSerializable-Proposal/
Thanks
Hello,
I have a proposal for PHP. The proposed interface would allow developers to
decode json into a custom object directly. If given the approval I would
possibly be able to implement it.
Here is my github link with further details:
https://github.com/decanus/JSON-Aware/tree/master
Regards