Created
March 20, 2013 00:43
-
-
Save funkatron/5201446 to your computer and use it in GitHub Desktop.
Where I immediately run into the limitations of PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [1] boris> require 'vendor/autoload.php'; | |
| [2] boris> use Respect\Validation\Validator as v; | |
| PHP Parse error: syntax error, unexpected 'use' (T_USE) in /Users/coj/bin/boris/lib/Boris/EvalWorker.php(103) : eval()'d code on line 1 | |
| PHP Stack trace: | |
| PHP 1. {main}() /Users/coj/bin/boris/bin/boris:0 | |
| PHP 2. Boris\Boris->start() /Users/coj/bin/boris/bin/boris:9 | |
| PHP 3. Boris\EvalWorker->start() /Users/coj/bin/boris/lib/Boris/Boris.php:95 | |
| Parse error: syntax error, unexpected 'use' (T_USE) in /Users/coj/bin/boris/lib/Boris/EvalWorker.php(103) : eval()'d code on line 1 | |
| Call Stack: | |
| 0.0012 229784 1. {main}() /Users/coj/bin/boris/bin/boris:0 | |
| 0.0024 264216 2. Boris\Boris->start() /Users/coj/bin/boris/bin/boris:9 | |
| 0.0046 304704 3. Boris\EvalWorker->start() /Users/coj/bin/boris/lib/Boris/Boris.php:95 | |
| → bool(false) | |
| [3] boris> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem here being that I can't do something basic in this REPL program because PHP just won't let me.