[PHP-DEV] PHP 4.0 Bug #9156 Updated: stripslashes doesn't work as expected From: stas <email protected>
Date: 03/15/01

ID: 9156
Updated by: stas
Reported By: nirf <email protected>
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To:
Comments:

For me, doing addslashes and then stripslashes on the
string, it comes out exactly as it was. Please provide
example of the code where it doesn't work.

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

[2001-02-08 03:50:05] nirf <email protected>
when using preg_replace all seems like addslashes had been processed on the string found in \1 so if the programmer had already did addslashes on the string before preg_replace he gets \1 after double addslashes which results in strings " change to \"
this might confuse users, and it might be added to the manual that all strings transfered to \1 are escape (addslashes) by default.

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

[2001-02-07 12:40:07] nirf <email protected>
when doing addslashes() to a string and then doing stripslashes() doesn't remove all occurance of single or double qoutes.
this is the string :

<TD><?=$Data_Source_Values["aliases"]->node[$i]['destination']?></TD>
                                <TD a'><?=$Data_Source_Values['aliases']->node[$i]['type']?></TD>
                                <TD><?=$Data_Source_Values['alias']->node[$i]['alias"sds]?></TD>

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

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9156&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>