php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54619 stripslashes extention
Submitted: 2011-04-28 10:43 UTC Modified: 2011-04-28 11:03 UTC
From: rc at opelgt dot org Assigned:
Status: Wont fix Package: Strings related
PHP Version: 5.3.6 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rc at opelgt dot org
New email:
PHP Version: OS:

 

 [2011-04-28 10:43 UTC] rc at opelgt dot org
Description:
------------
It would be nice (reduces lines in code) when stripslashes could handle arrays. 
For example stripslashes($_COOKIE);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-28 11:03 UTC] aharvey@php.net
-Status: Open +Status: Wont fix -Package: Arrays related +Package: Strings related
 [2011-04-28 11:03 UTC] aharvey@php.net
You can already do this with array_map():

$cookies = array_map('stripslashes', $_COOKIE);

I don't think there's any need to special case stripslashes() to handle arrays when there's already a generic method to accomplish this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC