#27570 [Fbk->Opn]: Tidy throw

From: Date: Sat, 13 Mar 2004 21:50:19 +0000
Subject: #27570 [Fbk->Opn]: Tidy throw
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56406@lists.php.net to get a copy of this message
ID: 27570 Updated by: nlopess@php.net Reported By: nlopess@php.net -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: * PHP Version: 5CVS-2004-03-11 (dev) New Comment: All functions that use TIDY_THROW exit PHP when an error is produced. Closing PHP just because the file was not found isn't a really good behaviour :) Previous Comments: ------------------------------------------------------------------------ [2004-03-13 04:55:53] sniper@php.net And the problem is what? (AFAIK, this is the expected behaviour..) ------------------------------------------------------------------------ [2004-03-11 11:24:43] nlopess@php.net Description: ------------ Using the given example, PHP exits. I think the problem is in TIDY_THROW. Reproduce code: --------------- <?php $tidy = tidy_parse_file('bogus.htm'); echo 'ok'; ?> Expected result: ---------------- ok Actual result: -------------- (gdb) run bug.php Starting program: /home/Nuno/php5/sapi/cli/php.exe bug.php Warning: tidy_parse_file(bogus.htm): failed to open stream: No such file or dire ctory in /home/Nuno/php5/sapi/cli/bug.php on line 2 Fatal error: Uncaught exception 'tidy_exception' with message 'Cannot Load 'bogu s.htm' into memory ' in /home/Nuno/php5/sapi/cli/bug.php:2 Stack trace: #0 {main} thrown in /home/Nuno/php5/sapi/cli/bug.php on line 2 Program exited with code 0377. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27570&edit=1

« previous php.bugs (#56406) next »