a9637d2c8a
This partially implements #16 - currently only for entry file.
belliash2018-07-24 09:06:35 +02:00
11b4c95c6f
Remove useless duplicated debug functions, they returned some trash information (nothing we don't get via debug_backtrace).
belliash2018-07-24 08:48:10 +02:00
965f19b9b7
Add scripts directory to the include path. This fixes#17.
belliash2018-07-24 08:05:08 +02:00
17c486d599
Make reported errors more PHP-like
belliash2018-07-23 15:20:46 +02:00
0d2238ac8c
Add chapter about 64bit Integers
belliash2018-07-23 15:18:26 +02:00
d937d0c825
Merge branch 'fix_file_dir' of PSharp/psharp into master
belliash2018-07-23 07:50:12 +02:00
aa2d762b29
Fixing include files functions
devnexen2018-07-23 06:34:25 +01:00
dba8e5098f
fixing in the vm context instead, making the feature available in case realpath could be implemented as well
devnexen2018-07-23 06:07:27 +01:00
3ae20a1ca6Fix#16 might needs to test under Windows.
devnexen2018-07-22 21:46:50 +01:00
7bb9924699
Call to undefined function should also be an error, not warning
belliash2018-07-22 22:47:00 +02:00
9cae9eb905
Throw an error if it cannot match the overloaded function/method. This fixes#13.
belliash2018-07-22 21:41:33 +02:00
63385281bf
Break script execution on exit
belliash2018-07-22 21:28:05 +02:00
4f4371545b
Implement register_autoload_handler() builtin function, that registers any number of autoloaders, enabling for classes to be automatically loaded if they are not defined. Implement a mechanism, to iterate through registered autoload callbacks until class is found.
belliash2018-07-15 00:06:26 +02:00
408ccc73c2
Do not switch to public visibility when dealing with constructor and/or destructor, this impairs language.
belliash2018-07-13 18:14:39 +02:00
d0357787db
Do not consider a method with the same name as class name to be a constructor, nor do not create such alias. This is some event from old PHP4, we do not want to support. Magic methods <__construct() & __destruct()> are more than enough.
belliash2018-07-13 17:58:50 +02:00
25264bd774
extension in PH7, but standard in P#
belliash2018-07-12 16:15:58 +02:00
0ad681ccf6
There is no fixed rule and XOR has different position in programming languages, but it has surely not higher precedence than AND and not lower than OR
belliash2018-07-12 16:15:27 +02:00
f212588ab1
Removing unnecessary operators (eq, ne). Some special strings comparison should be implemented as a function like strcmp().
belliash2018-07-12 16:05:11 +02:00