System Architecture (eg. arm, x86_64, ...): x86_64
Your problem description
Empty string or string containing special characters like "\n" is treated by PH7 Engine as NULL instead of zero-length string. Quick example:
var_dump('');
Expected results
string(0, '');
Current results
null
<!--
1. Please speak English, this is the language all of us can speak and write.
2. Please take a moment to check that your issue doesn't already exist.
3. Please give all relevant information below for bug reports, because
incomplete details will be handled as an invalid report.
-->
# AerScript Information
- Aer Version (or commit ref): dd239530d8
- Operating System: Linux
- System Architecture (eg. arm, x86_64, ...): x86_64
# Your problem description
Empty string or string containing special characters like "\n" is treated by PH7 Engine as NULL instead of zero-length string. Quick example:
var_dump('');
# Expected results
string(0, '');
# Current results
null
I suppose, there is a problem with PH7_OP_STORE instruction.
$x = '';
var_dump(is_string($x));
The above example also fails. It shows:
bool(FALSE)
instead of:
bool(TRUE)
I suppose, there is a problem with PH7_OP_STORE instruction.
AerScript Information
dd239530d8
Your problem description
Empty string or string containing special characters like "\n" is treated by PH7 Engine as NULL instead of zero-length string. Quick example:
Expected results
Current results
The above example also fails. It shows:
instead of:
I suppose, there is a problem with PH7_OP_STORE instruction.
I think it takes the value as it comes from the compiler. From what I checked, it forces type to NULL if string is empty. Seems easy to fix.
Let me check if I can fix this.
produces