Edit report at http://bugs.php.net/bug.php?id=52040&edit=1
ID: 52040
User updated by: michal_musial at o2 dot pl
Reported by: michal_musial at o2 dot pl
Summary: Fatal error (undefined function) not reported when php
within html tag's attr
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Windows 7 Ultimate (any?)
PHP Version: 5.3.2
New Comment:
Also tested it on FreeBSD 7.2-RELEASE with PHP 5.2.11 and Apache
2.2.13.
Same problem.
Previous Comments:
------------------------------------------------------------------------
[2010-06-10 16:41:49] michal_musial at o2 dot pl
Description:
------------
PHP does not print Fatal error when an undefined function is called from
within a
html tag's attribute.
Error is saved to php error log if one is specified in php.ini, but
there's
nothing being printed. Execution ends at the line preceding the line
containing
the undefined function.
Test script:
---------------
<p>p1</p>
<p class="<?php echo bogus(); ?>">p2</p>
<p>p3</p>
Expected result:
----------------
<p>p1</p>
<p class="<br />
<b>Fatal error</b>: Call to undefined function bogus() in
<b>E:\_webroot\localhost\test.php</b> on line <b>3</b><br />
Actual result:
--------------
<p>p1</p>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52040&edit=1