Bug #80039 [Com]: Illegal string offset and Cannot create references to/from string offsets

From: Date: Wed, 21 Jul 2021 09:47:44 +0000
Subject: Bug #80039 [Com]: Illegal string offset and Cannot create references to/from string offsets
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235225@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80039&edit=1

 ID:                 80039
 Comment by:         royalindie dot com at gmail dot com
 Reported by:        miloslav dot hula at gmail dot com
 Summary:             Illegal string offset and Cannot create references
                     to/from string offsets
 Status:             Closed
 Type:               Bug
 Package:            *General Issues
 PHP Version:        7.4.9
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Creative copywriting is the art of selling your product, or your service to potential customers by
using creative writing skills and the right words in the right sequence to appeal to the reader.
Writing Sales copy or Landing Pages is where most of the sales are made.

https://www.prolancerr.com/categories/writing-amp-translation/business-copywriting


Previous Comments:
------------------------------------------------------------------------
[2020-08-31 09:48:47] miloslav dot hula at gmail dot com

Thank you. But I think that test may fail in future. IMHO the exception should not be thrown at all.
I reported this as a consequence of https://bugs.php.net/bug.php?id=80037

------------------------------------------------------------------------
[2020-08-31 09:43:45] nikic@php.net

I've added the additional test case in http://git.php.net/?p=php-src.git;a=commit;h=8f7c52972089ad7ca6349a036a9cef6da5c4146e.

------------------------------------------------------------------------
[2020-08-31 09:21:07] nikic@php.net

Looks like this has been fixed by https://github.com/php/php-src/commit/247105ae1ae2a04608078f7fcfe88dacab9f55a4.

------------------------------------------------------------------------
[2020-08-31 09:19:34] miloslav dot hula at gmail dot com

And when you

$prop = &$cache[$class][$name];
var_dump($prop);

the $prop is NULL?

------------------------------------------------------------------------
[2020-08-31 09:12:48] nikic@php.net

Hm, I can't reproduce this on current 7.4/master HEAD, just get empty output. Possibly this has
been fixed recently?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=80039


--
Edit this bug report at https://bugs.php.net/bug.php?id=80039&edit=1


Thread (9 messages)

« previous php.bugs (#235225) next »