Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:42:39+00:00 2026-05-28T16:42:39+00:00

I have a legacy app which makes heavy use of the extract() function. It’s

  • 0

I have a legacy app which makes heavy use of the extract() function. It’s good security practice to use the EXTR_SKIP flag (e.g. extract($array_of_stuff, EXTR_SKIP)) when using this on untrusted data, to avoid malicious users overwriting existing variables. Naturally my legacy app does no such thing.

So my question is, is there any way I can set EXTR_SKIP as the default behavior for extract()? I’m still going through and specify it manually, but if I can set that globally I’d prefer to do so now to improve the app’s security while I’m slogging through.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:42:40+00:00Added an answer on May 28, 2026 at 4:42 pm

    I would say the answer is no. A simple wrapper function is best so grep etc is the way to go on this one. Even if you changed the default behavior that’s a bad idea if you’re running any third party libs that use extract and expect the normal default behavior. If you’re not running third party libs, fair enough, but there’s still no way to do it short of a hack afaik.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding
I have the following code from a legacy app which currently reads from an
We have a legacy VB6 app, which is critical to our business. We're working
I have a new rails app which needs to access data from a legacy
My situation is I have a legacy app which I don't have the code
I have an asp.net app which uses legacy COM interop library. Works fine until
The legacy web app I have inherited, which was custom-written for Oxfam New Zealand
I am working on a legacy app that uses Spring Security 2.0.4. I have
I've got an app that I've written targeting Android 2.1 which makes use of
We have a (massive) legacy WinForms app which, through a menu item, opens up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.