Split try-fault into two instructions, like try-catch
[hiphop-php.git] / hphp / tools / command_line_lib_UNSAFE.php
blob7b6f0241505f80acc49c9412a3360d7696367e11
1 <?php
3 // Stuff that doesn't typecheck due to using 'global $foo';
5 $saved_argv0 = $GLOBALS['argv'][0];
6 function error_UNSAFE($message) {
7 global $saved_argv0;
8 echo("$saved_argv0: $message\n");
9 exit(1);
12 function parse_options_UNSAFE($optmap) {
13 global $argv;
14 return parse_options_impl($optmap, $argv);