#45882 [Opn->Bgs]: echo '<pre>'.var_dump($this->db); prints only array :)
| From: | tularis@php.net | Date: | Thu, 21 Aug 2008 17:23:09 +0000 |
| Subject: | #45882 [Opn->Bgs]: echo '<pre>'.var_dump($this->db); prints only array :) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128289@lists.php.net to get a copy of this message | ||
ID: 45882
Updated by: tularis@php.net
Reported By: shock at spamavert dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Windows / nix
PHP Version: 5.3.0alpha1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Please see the documentation of var_dump, without the second parameter
it will automatically send the dump to the output buffer, return
*nothing*, append *nothing* to '<pre>' and THEN output that.
All expected behaviour.
Previous Comments:
------------------------------------------------------------------------
[2008-08-21 16:16:13] shock at spamavert dot com
Description:
------------
When i try to use this contruct:
<?php
echo '<pre>'.var_dump($db);
?>
then its doing same that:
<?php
var_dump($db);
?>
but
<?php
echo '<pre>';var_dump($db);
?>
Work fine :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45882&edit=1