Bug #79260 [Opn->Fbk]: Fatal error: Uncaught TypeError: Illegal offset type
| From: | requinix@php.net | Date: | Tue, 11 Feb 2020 18:24:12 +0000 |
| Subject: | Bug #79260 [Opn->Fbk]: Fatal error: Uncaught TypeError: Illegal offset type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225504@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79260&edit=1
ID: 79260
Updated by: requinix@php.net
Reported by: changochen1 at gmail dot com
Summary: Fatal error: Uncaught TypeError: Illegal offset type
-Status: Open
+Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: ALL
PHP Version: master-Git-2020-02-11 (Git)
Block user comment: N
Private report: N
New Comment:
And the bug is what, exactly?
Previous Comments:
------------------------------------------------------------------------
[2020-02-11 17:21:54] changochen1 at gmail dot com
Description:
------------
See poc below.
Run script:
```
php -f poc.php
```
Php version:
```
PHP 8.0.0-dev (cli) (built: Jan 31 2020 21:52:09) ( NTS )
```
We can't get a stack dump because it just throws an exception.
Test script:
---------------
<?php
class foo { }
$result = get_declared_classes ( ) ;
var_dump ( empty ( $a [ $i = 'expected_array' ] [ var_dump ( set_error_handler ( function
& ( $severity , $message , $file ) { echo $result [ 1 ] = $result [ ( $obj ) ] = $class_name
< 2 ;
var_dump ( $name ) ;
$result [ $a [ 0 ] = $s ] -= var_dump ( $GLOBALS =
var_export ( $result ) [ ] = $buffer ) [ 'foo' ] ;
echo $GLOBALS [ 1 ] = [ ( $obj ) ] = [ var_dump ( ini_get (
'error_reporting' ) [ $d = ( $result [ include $a_var -= 0 ] % -1 + get_parent_class (
$functions [ unlink ( strtolower ( $a [ $i = __DIR__ ] [ ++ $i ] >= $a [ ++ $i ] [ ++ $i ] ) ) ]
) ) . array ( 0 , 1 ) ] = $s % -2147483647 ) ] < 2 ;
;
}
, ) -> $arg1 , ) [ $i = [ unlink ( include $GLOBALS [ 0 ]
-= 0 , ) => '0' ] ] [ ++ $i ] = ( $v + ( '-.1' * 50 ) ) ] [ 0 ] ) ) ;
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79260&edit=1