How to clear memory on each execution?

I have something like this: <?php ini_set(‘max_execution_time’, 0); ini_set(‘memory_limit’, ‘1024M’); //require_once ‘../../tabkadeh/error_reporting.php’; function setName($name,$photoName, $new_file) { var_dump($new_file); require_once ‘files/lib/WideImage.php’; require_once ‘FarsiGD.php’; $left = ‘+50’; $top = ‘+400’; $bg = WideImage::load($photoName); //$final= $bg ->resize(400, 400); $final= $bg; $canvas = $final ->getCanvas(); //$canvas->useFont(‘./Yekan.ttf’, 200, $final->allocateColor(000, 000, 000)); $new_name=(new FarsiGD)->persianText($name,’fa’, ‘normal’); $canvas->useFont(‘./Ray-ExtraBlack.ttf’, 40, $final->allocateColor(34, 84, 109)); $canvas->writeText(“left $left”,…

Details

Azure Function (PowerShell)

After installing azure-core-functions v3 and migrating a project to v3 Powershell projects began to fail. Narrowed down the issue to be that Az modules loaded as dependencies were no longer recognized at runtime. Further testing revealed the managed dependency setting in the functions host.json file is properly loading the Az modules as deleting the data/ManagedDependencies…

Details

Spoof WindowsIdentity.GetCurrent().User.Value?

In a small hobby project of mine i got introduced to WindowsIdentity.GetCurrent().User.Value and asked myself if that can be spoofed. Of course using the Impersonate the information about another pc user can be used like specified in the example on windows website here: https://docs.microsoft.com/de-de/dotnet/api/system.security.principal.windowsidentity.impersonate?view=netframework-4.8#System_Security_Principal_WindowsIdentity_Impersonate but i asked myself if it is possible for another user…

Details