This package is abandoned and no longer maintained. No replacement package was suggested.

RAD Module

v0.1.1 2015-02-12 20:21 UTC

This package is auto-updated.

Last update: 2020-08-29 04:37:51 UTC


README

Build Status on TravisCI XP Framework Module BSD Licence Required PHP 5.4+ Required HHVM 3.4+ Latest Stable Version

This module allows rapid application development as PHP warnings are not raised as exceptions, which is the framework's default behaviour since RFC #291 was implemented.

Example

$ xp -w '$a++'
Uncaught exception: Exception lang.reflect.TargetInvocationException (xp\runtime\Evaluate::main)
  at lang.reflect.Method::invoke(NULL, array[1]) [line 248 of class-main.php]
Caused by Exception lang.NullPointerException (Undefined variable: a)
  at <main>::__error(8, (0x15)'Undefined variable: a', (0x60)'...', 1, array[5]) [line 1 of Evaluate.class.php(37) : eval()'d code]
  at <main>::eval() [line 37 of Evaluate.class.php]
  at xp.runtime.Evaluate::main(array[1]) [line 0 of StackTraceElement.class.php]
  ... 2 more

Simply add this module to your class path to enable the RAD mode:

$ xp -cp ../rad/src/main/php/ -w '$a++'
null