Syntax errors corrected

- Now compatible with PHP > 5.4.x (stand alone)
- test-memory works now