Re: [PHP-DEV] [RFC] Reflection for references

2019-01-16 Thread Stanislav Malyshev
Hi! > I'd like to propose the addition of a ReflectionReference class, as > described in the following RFC: > https://wiki.php.net/rfc/reference_reflection Do I understand correctly that the main use case here is to know if two variables (treating this term expansively) point, by reference, to th

Re: [PHP-DEV] Possible bug in the implementation of php://input streams?

2019-01-16 Thread Lauri Kenttä
On 2019-01-16 09:59, Rasmus Schultz wrote: We've noticed something odd about the "php://input" stream. If you attempt to rewind() it after reading the stream, rewind() returns true, and ftell() subequently returns 0. However, attempting to read the stream again after that returns nothing.

[PHP-DEV] Possible bug in the implementation of php://input streams?

2019-01-16 Thread Rasmus Schultz
We've noticed something odd about the "php://input" stream. This type of stream resource reports itself as seekable: assert(stream_get_meta_data(fopen("php://input", "r"))["seekable"] === true); https://3v4l.org/EFLiO If you attempt to rewind() it after reading the stream, rewind() returns true