Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Rowan Tommins
On 20/09/2022 19:29, Olle Härstedt wrote: Ya ok, this kills my idea. If heredoc was designed from start so that the delimiter would not be allowed at all in the text, then it would make sense. Weird that they did it like that, would be easy enough to come up with a unique delimiter so that it wou

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-20 Thread Tim Düsterhus
Hi Nicolas On 9/20/22 19:40, Nicolas Grekas wrote: I'm a bit busy with conferences these days... Understood. Enjoy! Are those two examples based on real-world use cases or did you craft them specifically to point out how the proposal would introduce a behavioral change? They were inspired

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Olle Härstedt
2022-09-20 17:00 GMT+02:00, Sara Golemon : > On 19 September 2022 15:24:26 BST, "Olle Härstedt" < > olle.haerst...@limesurvey.org> wrote: >>Some editors can guess the domain-specific language inside heredoc, e.g. > if you do >> >>$query = <<>SELECT * FROM foo >>MySQL; >> >>It would be nice if this

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Olle Härstedt
2022-09-20 11:54 GMT+02:00, Rowan Tommins : > On 19/09/2022 20:10, Olle Härstedt wrote: >> More for users to learn? Don't you mean less, haha? This is an >> arbitrary limitation of heredoc, that we can remove (it might not be >> arbitrary from a yacc perspective, someone would have to explain that

Re: [PHP-DEV] Re: Issues with readonly classes

2022-09-20 Thread Jordan LeDoux
On Sun, Sep 11, 2022 at 8:22 AM Larry Garfield wrote: > > > Hm. I seem to recall during the discussion of readonly classes someone > saying that object properties of a readonly class had to also be readonly > classes, which would render the above code a compile error. However, I > just checked

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-20 Thread Nicolas Grekas
Hi Tim, I'm a bit busy with conferences these days... On 9/12/22 21:46, Nicolas Grekas wrote:>> unserialize() is a generic > function that will also call arbitrary > >> callbacks. You already have no guarantees whatsoever about the kind of > >> exception that is thrown from it. I am unable to thi

Re: [PHP-DEV] RFC json_validate() - status: Under Discussion

2022-09-20 Thread Tim Düsterhus
Hi On 9/20/22 00:15, juan carlos morales wrote: The RFC still contains a non-empty "Open Issues" section. This needs to be resolved before the vote starts. I would also recommend inserting a closed voting widget (or multiple, if you want to have additional votes for the details), so that it's c

Re: [PHP-DEV] One-line heredoc for better syntax highlightning

2022-09-20 Thread Sara Golemon
On 19 September 2022 15:24:26 BST, "Olle Härstedt" < olle.haerst...@limesurvey.org> wrote: >Some editors can guess the domain-specific language inside heredoc, e.g. if you do > >$query = <