Rafal Kupiec
426ec932ec
Implement MemObjIsHashmap().
1 year ago
Rafal Kupiec
673796d878
Add missing function description.
1 year ago
Rafal Kupiec
4723128b74
Implement PH7_MemObjIsNull().
1 year ago
Rafal Kupiec
9aa192db69
Remove unused argument from PH7_MemObjInitFromVoid().
1 year ago
Rafal Kupiec
fdba2c0a5c
Set data type to void, not just NULL.
1 year ago
Rafal Kupiec
43a1f135cc
Set correct variable type if NULL or not set at all.
1 year ago
Rafal Kupiec
5948c3a5b6
Remove unused function argument.
1 year ago
Rafal Kupiec
ddd46a4e80
Quick small cleanup.
1 year ago
Rafal Kupiec
3cca5faa76
Store variable type in dedicated field.
1 year ago
Rafal Kupiec
07bd3ceec3
Reimplement 'parent' construct as variable $parent.
This commit also adds new controls to variables, which prevents from re-assigning a value when set. Thanks to that, both $this and $parent cannot be overwritten by using OP_STORE instruction. Other instructions still need some
work.
1 year ago
Rafal Kupiec
c9203b6c91
New source code legal format.
1 year ago
Rafal Kupiec
d819820798
Always make an array copy. Fixes #48 .
1 year ago
Rafal Kupiec
ee0d189f0a
Add comments.
1 year ago
Rafal Kupiec
cdc0dade2a
Allow to store a character in string variable.
1 year ago
Rafal Kupiec
f0e50678e3
Optimize the code a bit.
1 year ago
Rafal Kupiec
8810a86a2c
Fix for typoecasting callback to string.
1 year ago
Rafal Kupiec
b0165e5702
Do not reset blob when typecasting from string to callback.
1 year ago
Rafal Kupiec
d74b182235
Properly typecast callback to boolean.
1 year ago
Rafal Kupiec
1679420f4c
Get rid of some invisible escape characters.
1 year ago
Rafal Kupiec
d34c8ceafb
Fix void dump.
1 year ago
Rafal Kupiec
39f698476f
This is not the right way to go - revert 465336b23b
.
1 year ago
Rafal Kupiec
465336b23b
Mark void variable as well as NULL, and dump NULL as void.
1 year ago
Rafal Kupiec
a1151d598b
Do not emit warning when assigning NULL to resource.
1 year ago
Rafal Kupiec
9acd6fbcb2
Do not typecast NULL to StdClass.
1 year ago
Rafal Kupiec
8d3b7f303f
Allow to assign any value if data type is not specified.
1 year ago
Rafal Kupiec
66a7e957c9
Allow to assign NULL to array.
1 year ago
Rafal Kupiec
aaef03396c
Implement PH7_MemObjSafeStore().
1 year ago
Rafal Kupiec
45b1d4ed73
Compare only non-array to non-array values.
1 year ago
Rafal Kupiec
4f6be2234e
Allow NULL to be assigned to any type of variable. NULL will be automatically typecasted to any data type, thus setting ti the default value.
1 year ago
Rafal Kupiec
9b741175f2
Uppercase.
1 year ago
Rafal Kupiec
3f205c19ce
Get rid of dirty references. Return a reference & pass-by reference are still working.
1 year ago
Rafal Kupiec
a013cee2d1
Properly serve the arrays.
1 year ago
Rafal Kupiec
45f4a00b05
Revert 5e54233ef8
.
1 year ago
Rafal Kupiec
5e54233ef8
Check only non-array vriables.
1 year ago
Rafal Kupiec
891818d601
Fix PH7_CheckVarCompat(). Array can be assigned only to array.
1 year ago
Rafal Kupiec
a87471e1e3
The empty() function is useless in Aer.
1 year ago
Rafal Kupiec
e75ed7b9a9
Only INTEGER and FLOAT should be considered as numerical.
1 year ago
Rafal Kupiec
59e2743a60
Simply release the object, no need to use a wrapper function.
1 year ago
Rafal Kupiec
0115b30d01
Extension to PHP, standard in AerScript.
1 year ago
Rafal Kupiec
d6c5f01905
PH7_VmMemoryError() always breaks script execution.
2 years ago
Rafal Kupiec
4af3220018
Throw a warning when trying to typecast to resource.
2 years ago
Rafal Kupiec
a7b4c6e880
Do not typecast to resource type at all. This might lead to attempt of access to the invalid memory area and segmentation fault.
2 years ago
Rafal Kupiec
fa0b487cc0
Implement typecasting to resource data type.
2 years ago
Rafal Kupiec
f97e2a8294
Implement typecasting to callback data type.
2 years ago
Rafal Kupiec
9ab896c2e2
Implement PH7_CheckVarCompat().
2 years ago
Rafal Kupiec
f3f1723104
Return valid function for conversion to char.
2 years ago
Rafal Kupiec
0d3cb90d5f
Always convert integer value to char as it is done in C/C++.
2 years ago
Rafal Kupiec
3cc8cfe6a2
Remove duplicated code.
2 years ago
Rafal Kupiec
1cebd3af37
Allow char to be typecasted to value of any other type.
2 years ago
Rafal Kupiec
5dde778382
Release object to free some memory.
2 years ago