Req #81171 [NEW]: &$GLOBALS not allowed anymore

From: Date: Sat, 19 Jun 2021 06:50:26 +0000
Subject: Req #81171 [NEW]: &$GLOBALS not allowed anymore
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234492@lists.php.net to get a copy of this message
From:             herbert at groot dot jebbink dot nl
Operating system: Linux
PHP version:      8.1.0alpha1
Package:          Arrays related
Bug Type:         Feature/Change Request
Bug description:&$GLOBALS not allowed anymore 

Description:
------------
Below line gives in 8.1.0alpha1 the error "SHUTDOWN: Cannot acquire
reference to $GLOBALS"

$pad_data [1] [1] = &$GLOBALS;

I did read below page and understand that changes are good in new
releases, happy that PHP evolves.

https://wiki.php.net/rfc/restrict_globals_usage

however, it would be great if the error message only happens if the
usage is not lookup but when it tries to change it.







-- 
Edit bug report at https://bugs.php.net/bug.php?id=81171&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81171&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81171&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81171&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81171&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81171&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81171&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81171&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81171&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81171&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81171&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81171&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81171&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81171&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81171&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81171&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81171&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81171&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#234492) next »