Empty string is treated as NULL #35

Fermé
ouvert(e) par belliash 2018-08-06 12:25:47 +02:00 · 1 commentaire
Propriétaire

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
<!-- 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
belliash a ajouté le label bug 2018-08-06 12:25:47 +02:00.
Auteur
Propriétaire
$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.

$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.
Ghost a fermé ce ticket 2018-08-06 16:21:03 +02:00.
Connectez-vous pour rejoindre cette conversation.
1 participants
Notifications
Échéance
Aucune échéance n'a été définie.
Dépendances

Aucune dépendance définie.

Référence : aerscript/Aer#35