Skip to content

Commit

Permalink
[Pipp] Aaargh. NULL stringifies to '' after all
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/parrot/trunk@33307 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
bernhard committed Nov 28, 2008
1 parent 8be50d2 commit da553a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/pmc/phpnull.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,6 @@ Return the string 'NULL'.
VTABLE void set_integer_native(INTVAL value) {
}

/*

=item C<STRING *get_string()>

Returns the string 'NULL'.

=cut

*/

VTABLE STRING *get_string() {
return const_string(INTERP, "NULL");
}



/*

=back
Expand Down
2 changes: 1 addition & 1 deletion t/php/null.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ language_output_is( 'Pipp', <<'CODE', <<'OUT', 'Stringification of an undefined
echo $undefined_var;
echo "\n";
CODE
NULL

OUT

# Local Variables:
Expand Down
2 changes: 1 addition & 1 deletion t/pmc/null.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Tests C<PhpNull> PMC.

null_value = new 'PhpNull'
s = null_value
is_ok = s == 'NULL'
is_ok = s == ''
ok( is_ok, 'stringification' )
.end

Expand Down

0 comments on commit da553a6

Please sign in to comment.