From: borgiel at nevarsa dot com
Operating system: W2k
PHP version: 4.3.3RC1
PHP Bug Type: Strings related
Bug description: stripslashes() Problem with single quotes
Description:
------------
php.ini: (standard (dist) with this modifications)
register_globals = On
magic_quotes_gpc = 0n
magic_quotes_runtime = 0n
magic_quotes_sybase = 0n
If I use the stripslashes() function on '' i wil get only one ' back. I
think this is not correct. If i have some text between the single quotes
('test'). The function works fine.
I found this Bug in version 4.3.2 and it is in version 4.3.3RC1, too.
There is a same bug in the system, but it is closed!!!
Bug #15824
It says:
Set magic_quotes_sybase = Off and the function works.
And it should be fixed in CVS, but it was last year. Why isn't it in
version 4.3.2 and 4.3.3RC1 ?
Reproduce code:
---------------
<?
$string = "Hello '' Test";
echo stripslashes($string);
?>
Expected result:
----------------
Hello '' Test";
Actual result:
--------------
Hello ' Test
--
Edit bug report at http://bugs.php.net/?id=24290&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24290&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24290&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24290&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24290&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24290&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24290&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24290&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24290&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24290&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24290&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24290&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24290&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24290&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24290&r=gnused