Files
pecl-php-parsekit/examples/compile_string_show_errors.php
2004-05-05 22:37:32 +00:00

15 lines
193 B
PHP

<?php
/* Compile a buggy Hello World program */
$oparray = parsekit_compile_string('
function foo($bar = "Hello World) {
return $bar;
}
echo foo();
', $errors);
var_dump($errors);