|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-04 06:19 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2015-03-04 06:49 UTC] laruence@php.net
[2015-03-04 06:49 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ After upgrading from 5.5.22 to 5.6.6 the script failed to operate correctly, churning out "Notice: undefined variable" errors on the function call line. Disabling opcache fixes the problem. Sadly the short version I've posted here doesn't appear to exhibit the problem, and I don't have time to anonymise the much larger section of code that's been breaking. Nevertheless, it was 100% the call to "myFunction" that was giving a Notice undefined variable error. Test script: --------------- $i=1; ${"sR{$i}S1"} = 'hello'; ${"nR{$i}S1P"} = 'world'; myFunction(${"sR{$i}S1"}, ${"nR{$i}S1P"}); function myFunction($x, $y) { echo "$x $y"; } Expected result: ---------------- echos "hello world" Actual result: -------------- Notice: undefined variable