ID:               42412
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nikhil dot gupta at in dot ibm dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: Linux
 PHP Version:      5CVS-2007-08-24 (snap)
 New Comment:

You misunderstood the documentation, it's about the NUL character, not
about NULL in PHP land.


Previous Comments:
------------------------------------------------------------------------

[2007-08-24 12:05:12] nikhil dot gupta at in dot ibm dot com

Description:
------------
As per the documentation, it should insert a backslash in the return
string. But it returns an empty string without any backslash.

Reproduce code:
---------------
<?php
  var_dump( NULL);
  var_dump( addslashes(NULL) );
?>


Expected result:
----------------
NULL
string(1) "\"


Actual result:
--------------
NULL
string(0) ""


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42412&edit=1

Reply via email to