equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Debug |
16 * @package Zend_Debug |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Debug.php 20096 2010-01-06 02:05:09Z bkarwin $ |
19 * @version $Id: Debug.php 25095 2012-11-07 20:11:07Z rob $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * Concrete class for generating debug dumps related to the output source. |
23 * Concrete class for generating debug dumps related to the output source. |
24 * |
24 * |
25 * @category Zend |
25 * @category Zend |
26 * @package Zend_Debug |
26 * @package Zend_Debug |
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 */ |
29 */ |
30 |
30 |
31 class Zend_Debug |
31 class Zend_Debug |
32 { |
32 { |
88 $output = PHP_EOL . $label |
88 $output = PHP_EOL . $label |
89 . PHP_EOL . $output |
89 . PHP_EOL . $output |
90 . PHP_EOL; |
90 . PHP_EOL; |
91 } else { |
91 } else { |
92 if(!extension_loaded('xdebug')) { |
92 if(!extension_loaded('xdebug')) { |
93 $output = htmlspecialchars($output, ENT_QUOTES); |
93 $flags = ENT_QUOTES; |
|
94 // PHP 5.4.0+ |
|
95 if (defined('ENT_SUBSTITUTE')) { |
|
96 $flags = ENT_QUOTES | ENT_SUBSTITUTE; |
|
97 } |
|
98 $output = htmlspecialchars($output, $flags); |
94 } |
99 } |
95 |
100 |
96 $output = '<pre>' |
101 $output = '<pre>' |
97 . $label |
102 . $label |
98 . $output |
103 . $output |