PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [df6049bef5]

Artifact df6049bef59511c0238c8e6dde1f5122e8397e69:

  • Executable file doc/devtools/_notdefined — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 82)
  • Executable file dtools/_notdefined — part of check-in [39c9fa23ab] at 2010-06-22 17:03:23 on branch trunk — upgradephp-14 (user: mario size: 82)

#!/usr/bin/perl -p

s/^(\s*)(define\("(.+?)".+\);)/$1if (!defined("$3")) { $2 }/;