php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79260 Fatal error: Uncaught TypeError: Illegal offset type
Submitted: 2020-02-11 17:21 UTC Modified: 2020-02-11 18:46 UTC
From: changochen1 at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: master-Git-2020-02-11 (Git) OS: ALL
Private report: No CVE-ID: None
 [2020-02-11 17:21 UTC] 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 ] ) ) ;
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-11 18:24 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2020-02-11 18:24 UTC] requinix@php.net
And the bug is what, exactly?
 [2020-02-11 18:42 UTC] changochen1 at gmail dot com
-Status: Feedback +Status: Open
 [2020-02-11 18:42 UTC] changochen1 at gmail dot com
Sorry that I took this as a problem of PHP interpreter by mistake as this is captured by our testing tool as crash. Please close this issue.
 [2020-02-11 18:46 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2020-02-11 18:46 UTC] requinix@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 02:01:35 2024 UTC