|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-05 19:36 UTC] tony2001@php.net
[2005-05-14 14:55 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
Description: ------------ Variable variables in globals. Crash. See reproduce code. Reproduce code: --------------- <?php $var[1] = "user"; $var[2] = "name"; function check($var) { global $$var[1][$var[2]]; // <- Segmentation fault echo $$var[1][$var[2]]; } check($var); ?>