Last active
February 1, 2017 13:46
-
-
Save matej21/f3c8ea02e79f59916edb612974d9600a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$a = 1; | |
var_dump($a); //prints 2 |
This file contains hidden or 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 | |
$a = new class { | |
function __destruct() | |
{ | |
$GLOBALS['a'] = 2; | |
} | |
}; | |
require 'a.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment