313 Commits (72782b147ab24f113c910c466431b1dbbfed3cb4)

Author SHA1 Message Date
  Rafal Kupiec f3d10dd4bc
Try to exit with code returned by Program::main() only when it is integer value. 2 years ago
  Rafal Kupiec de2b355862
Return 0, when display error message. 2 years ago
  Rafal Kupiec c8985032ef
Verify that return value match the data type of declared method/closure. 2 years ago
  Rafal Kupiec a5ee2d75eb
PH7_VmMemoryError() always breaks script execution. 2 years ago
  Rafal Kupiec b7e3ad9f46
PH7_VmMemoryError() always breaks script execution. 2 years ago
  Rafal Kupiec 7eba38a633
Fix segmentation fault when trying to store a value under next index into an array. 2 years ago
  Rafal Kupiec fa0b487cc0
Implement typecasting to resource data type. 3 years ago
  Rafal Kupiec bbdc740388
Finally, do not allow a string variables to act as callback. 3 years ago
  Rafal Kupiec f97e2a8294
Implement typecasting to callback data type. 3 years ago
  Rafal Kupiec d87ce3ad1d
1. Set a proper data type when compiling closure. 3 years ago
  Rafal Kupiec 3f9e3b0664
Check for compatible data types on OP_CALL & OP_STORE. 3 years ago
  Rafal Kupiec d65a529d21
Initial support for char data type. 3 years ago
  Rafal Kupiec 174ecb2a38
Initial support for void type. 3 years ago
  Rafal Kupiec 87db6d6dfd
Allow a method/closure to take compatible mixed variable as argument. 3 years ago
  Rafal Kupiec 6f13c347d8
Set the proper type of array. 3 years ago
  Rafal Kupiec c00080e190
Correct comment. 3 years ago
  Rafal Kupiec b5eb268ce1
Do not allow to set a value of different type to the variable. 3 years ago
  Rafal Kupiec 5f2f9d9c08
Set proper data type for static variables; 3 years ago
  Rafal Kupiec 369cadfcda
Tryeing to call a non-instantiated object should result in an error. 3 years ago
  Rafal Kupiec ae0fde152c
Create a variable only on OP_LOAD. 3 years ago
  Rafal Kupiec 514e07c7f3
Fix static variables not containing any value. 3 years ago
  Rafal Kupiec f927667d85
Strictly check for data type of static variable declaration. 3 years ago
  Rafal Kupiec e6e59d299e
Fix method parameters. 3 years ago
  Rafal Kupiec 5a6af65cfa
Object of wrong type passed as argument should be generate error. 3 years ago
  Rafal Kupiec 82998ffd0f
Silently typecast integer value to float. 3 years ago
  Rafal Kupiec 58103ea5fe
Mark method/closure call frame as active. 3 years ago
  Rafal Kupiec 3a16eced8a
Push error if argument type does not match. 3 years ago
  Rafal Kupiec 5504579566
Passing an object of different type as expected should result in error. 3 years ago
  Rafal Kupiec faca9b7fb2
Another fix in debug trace. 3 years ago
  Rafal Kupiec ecebbb6094
Use type hinting in standard library. 3 years ago
  Rafal Kupiec 58b7ceeae9
Get rid of $GLOBALS completely. 3 years ago
  Rafal Kupiec e383536dc4
Do not store script arguments in $GLOBALS. 3 years ago
  Rafal Kupiec 9ebc3dc61a
Extract a list of parameters and pass them to Program::main(); 3 years ago
  Rafal Kupiec eb79ed500e
Store float values in an union. 3 years ago
  Rafal Kupiec af1d59dab4
Don't try to get an integer representation of float. 3 years ago
  Rafal Kupiec 43a36f070c
Correct comments. 3 years ago
  Rafal Kupiec 3887aa69a6
Never disable hash functions. 3 years ago
  Rafal Kupiec 00e1c842d5
Never disable builtin functions. 3 years ago
  Rafal Kupiec ea4daa9335
Take last instruction being executed, not necessarily OP_CALL. 3 years ago
  Rafal Kupiec 6387026e15
Do not limit the output buffering callbacks. 3 years ago
  Rafal Kupiec 11ba0ce738
No need to store output length in VM. 3 years ago
  Rafal Kupiec 404f5a2688
No need to store unique ID in VM. 3 years ago
  Rafal Kupiec 894dbe47d6
Allow compiler to specify line number, on which instruction has been generated. 3 years ago
  Rafal Kupiec 543176a2f4
Switch VM state to PH7_VM_INCL when including new file. 3 years ago
  Rafal Kupiec d58249cb3f
Use debug trace only if VM is really executing some code. 3 years ago
  Rafal Kupiec d793d3ed70
Rename PH7_VmGenericError() to PH7_VmThrowError() 3 years ago
  Rafal Kupiec 758ace0d1a
Shutdown library properly on error. 3 years ago
  Rafal Kupiec dc0a55c8c0
Cleanup old error handler. 3 years ago
  Rafal Kupiec ac73632cb1
Use new error handler. 3 years ago
  Rafal Kupiec d85a517eb0
Rework trigger_error() builtin function. 3 years ago