Created
December 2, 2015 17:12
-
-
Save mikelbring/412bba27a5792a814a05 to your computer and use it in GitHub Desktop.
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 | |
// Will this cause a memory leak? | |
// Will a new instance of ObjectClass stay in memory each iteration? | |
// If I attach it to a variable will it replace the old memory pointer? | |
foreach ($a as $k) { | |
new ObjectClass($k); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment