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 6585737
In Process

The Archive Base Latest Questions

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

I use Zend_Debug::dump to dump variables into a Zend_Log file. How can I get

  • 0

I use Zend_Debug::dump to dump variables into a Zend_Log file. How can I get it to stop wrapping the output in HTML tags?

The documentaion says “If the output stream is detected as a web presentation, the output of var_dump() is escaped using » htmlspecialchars() and wrapped with (X)HTML tags.” Why does it think my log file is a web presentation?

The method for the dump function has a boolean $echo flag. Even when this is FALSE, I get HTML markup in my log files.

Thanks for you help!

  • 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-25T16:42:06+00:00Added an answer on May 25, 2026 at 4:42 pm

    Zend Debug is always using htmlspecialchars() to quote. You cant disable this by an provided parameter.

    The boolean for “echo” is only used to disable the var_dump() (wich is used in Zend_Debug) printing to the browser.

    Code from Zend_Debug::dump():

    $output = htmlspecialchars($output, ENT_QUOTES);

        if (self::getSapi() == 'cli') {
            $output = PHP_EOL . $label
                    . PHP_EOL . $output
                    . PHP_EOL;
        } else {
            if(!extension_loaded('xdebug')) {
                $output = htmlspecialchars($output, ENT_QUOTES);
            }
    
            $output = '<pre>'
                    . $label
                    . $output
                    . '</pre>';
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use Zend_Debug::dump, to keep some variables in the log, but since
I'm using the skeleton application for ZF2.0.0Beta3. So, normally I would just use Zend_Debug::dump($someVar);
I'd really like to get deeper into my php scripts and use things like
I use Zend Framework and I have problem with JSON and UTF-8. Output \u00c3\u00ad\u00c4\u008d
I want to use Zend_Rest_client to post a file to a certain url as
Can I use zend Registry to save variable to use in other controller? this
When debugging it's quite common for me to use things such as Zend_Debug and
I use Zend framework and Doctrine. In many projects, business logic is built into
I currently use zend_navigation via an XML file. However I need to overwrite the
I use zend framework and can't write in model next sql query: SELECT `id_user`,`system_role`,count(`system_role`)

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.