Re: [PHP-DEV] Why are serialized strings wrapped in double quotes? (s::"")

2024-02-09 Thread Casper Langemeijer
On Tue, Feb 6, 2024, at 21:19, Sanford Whiteman wrote: > I'd like a little background on something we've long accepted: why > does the serialization format need double quotes around a string, even > though the byte length is explicit? > Instead we need to be aware of the leading and trailing " in

Re: [PHP-DEV] Feature request: https://github.com/php/php-src/issues/13301

2024-02-09 Thread Григорий Senior PHP / Разработчик Web
> I've worked on PHP (and non-PHP) applications with (tens of) millions of lines of code Grats, you're a hero. Now, you're a hero. You can solve the application in your paper notebook. That does not explain why computers should know some correctness and not help you, because you're a hero. I

Re: [PHP-DEV] Why are serialized strings wrapped in double quotes? (s::"")

2024-02-09 Thread Robert Landers
On Fri, Feb 9, 2024 at 8:13 AM Michał Marcin Brzuchalski wrote: > > czw., 8 lut 2024 o 20:10 Sanford Whiteman > napisał(a): > > > Hi Michał, > > > > Thursday, February 8, 2024, 2:58:52 AM, you wrote: > > ... > > >O3:Foo:5{s4:date;O17:DateTimeImmutable:3{s4:date;s26:2024-02-08 > > > >

Re: [PHP-DEV] Feature request: https://github.com/php/php-src/issues/13301

2024-02-09 Thread Robert Landers
On Thu, Feb 8, 2024 at 8:57 PM Григорий Senior PHP / Разработчик Web <6562...@gmail.com> wrote: > > 1. Do some benchmark with > > ``` > > function a($a, $b) > { > return $a + $b; > } > > function aa($a, $b) > { > throw new \Exception(); > > return $a + $b; > } > > $bag = []; > >