Edit report at http://bugs.php.net/bug.php?id=52763&edit=1
ID: 52763 Updated by: [email protected] Reported by: amaury dot carrade at free dot fr Summary: There is a problem in concatenation -Status: Open +Status: Bogus Type: Bug Package: Unknown/Other Function Operating System: Linux Kubuntu 10.04 PHP Version: 5.3.3 Block user comment: N New Comment: var_dump() can't be used line like that. Use print_r() or var_export() with the return parameter set. Previous Comments: ------------------------------------------------------------------------ [2010-09-01 20:14:24] amaury dot carrade at free dot fr Description: ------------ There is a problem in concatenation. When I write : <?php echo '<pre>' . var_dump($var) . '</pre>'; ?> PHP show the same result as : <?php echo var_dump($var) . '<pre></pre>'; ?> There is a solution (show below), but it is not practical <?php echo '<pre>'; echo var_dump($var) . '</pre>'; ?> Test script: --------------- <?php echo '<pre>' . var_dump($var) . '</pre>'; ?> Expected result: ---------------- <pre>The result of the function var_dump()</pre> Actual result: -------------- The result of the function var_dump()<pre></pre> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52763&edit=1
