Author: bernhard
Date: Fri Nov 28 02:31:52 2008
New Revision: 33307

Modified:
   trunk/languages/pipp/src/pmc/phpnull.pmc
   trunk/languages/pipp/t/php/null.t
   trunk/languages/pipp/t/pmc/null.t

Log:
[Pipp] Aaargh. NULL stringifies to '' after all


Modified: trunk/languages/pipp/src/pmc/phpnull.pmc
==============================================================================
--- trunk/languages/pipp/src/pmc/phpnull.pmc    (original)
+++ trunk/languages/pipp/src/pmc/phpnull.pmc    Fri Nov 28 02:31:52 2008
@@ -42,22 +42,6 @@
 
 /*
 
-=item C<STRING *get_string()>
-
-Returns the string 'NULL'.
-
-=cut
-
-*/
-
-    VTABLE STRING *get_string() {
-        return const_string(INTERP, "NULL");
-    }
-
-
-
-/*
-
 =back
 
 =head2 non-Vtable Methods

Modified: trunk/languages/pipp/t/php/null.t
==============================================================================
--- trunk/languages/pipp/t/php/null.t   (original)
+++ trunk/languages/pipp/t/php/null.t   Fri Nov 28 02:31:52 2008
@@ -30,7 +30,7 @@
 echo $undefined_var;
 echo "\n";
 CODE
-NULL
+
 OUT
 
 # Local Variables:

Modified: trunk/languages/pipp/t/pmc/null.t
==============================================================================
--- trunk/languages/pipp/t/pmc/null.t   (original)
+++ trunk/languages/pipp/t/pmc/null.t   Fri Nov 28 02:31:52 2008
@@ -42,7 +42,7 @@
 
     null_value = new 'PhpNull'
     s = null_value
-    is_ok = s == 'NULL'
+    is_ok = s == ''
     ok( is_ok, 'stringification' )
 .end
 

Reply via email to