Bug #79260 [NEW]: Fatal error: Uncaught TypeError: Illegal offset type
| From: | changochen1 at gmail dot com | Date: | Tue, 11 Feb 2020 17:21:54 +0000 |
| Subject: | Bug #79260 [NEW]: Fatal error: Uncaught TypeError: Illegal offset type | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225502@lists.php.net to get a copy of this message | ||
From: changochen1 at gmail dot com
Operating system: ALL
PHP version: master-Git-2020-02-11 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Fatal error: Uncaught TypeError: Illegal offset type
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 bug report at https://bugs.php.net/bug.php?id=79260&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79260&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79260&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79260&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79260&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79260&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79260&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79260&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79260&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79260&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79260&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79260&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79260&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79260&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79260&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79260&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79260&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79260&r=mysqlcfg