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: Feedback +Status: Open Type: Bug Package: Scripting Engine problem Operating System: Windows 7 Ultimate (any?) PHP Version: 5.3.2 New Comment: I can confirm that the problem does not exist when parsing the code in CLI mode on my current setup (PHP 5.3.2 VC6 - for apache). This points the problem to php5- module for apache. I am not able to check whether VC9 version is affected as from what windows.php.net says VC9 should not be used with apache binaries and I don't have IIS. Previous Comments: ------------------------------------------------------------------------ [2010-06-10 17:19:41] f...@php.net Please try http://windows.php.net/downloads/releases/php-5.3.2-nts-Win32-VC9-x86.zip with the php.ini-production and try to reproduce ------------------------------------------------------------------------ [2010-06-10 17:13:33] michal_musial at o2 dot pl I'm no expert in php config, so it's entirely possible. Have a look at my config: http://mmusial.nazwa.pl/php.ini ------------------------------------------------------------------------ [2010-06-10 17:07:10] f...@php.net Can't reproduce with the VC9 build of 5.3.2 from windows.php.net in CLI mode. Are you sure you have no special php.ini settings (like auto_prepend) or anything related to output buffering? This really looks like a configuration issue at first glance. ------------------------------------------------------------------------ [2010-06-10 16:48:23] michal_musial at o2 dot pl Also tested it on FreeBSD 7.2-RELEASE with PHP 5.2.11 and Apache 2.2.13. Same problem. ------------------------------------------------------------------------ [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