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

From: Date: Thu, 22 Jul 2021 07:53:41 +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-235251@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:

What is book writing? If you have your ideas and would like to write them down for possible
publication, then a book writing service is something that would help you achieve that. But it would
be better if you hire a professional book writer who can write your thoughts in such a way so that
people cannot easily take away your ideas. 

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


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 (#235251) next »