Fixing Old Commands

for newer PHP versions