Created
April 8, 2014 09:02
-
-
Save elleryq/10103147 to your computer and use it in GitHub Desktop.
To reproduce "PHP Fatal error: Cannot create references to/from string offsets nor overloaded objects"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$widgets = array(); | |
$widgets['a'] = 'hello'; | |
print($widgets['a'][0]); // show 'h' | |
print("\n"); | |
$o = & $widgets['a'][0]; // Show "Cannot create references to/from string offsets" | |
//print($o); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment