From: [EMAIL PROTECTED]
Operating system: Windows 98 SE 4.10.2222
PHP version: 4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description: "die" crash
if you declare more than one class in a file,and place 'die();' as the final excutable
statement,PHP will crash....
e.g:
<?php
class T{
var $q;
function W(){
echo 'Q';
}
}
ob_start();
show_source(__FILE__);
$result=ob_get_contents();
ob_end_clean();
$a=false;
if ($a=='1'):
echo 'Hi';
endif;
while(false){
echo 'No';
}
$result=str_replace ("<br>", "\n", $result);
echo '<pre>'.strip_tags($result,'<font>').'</pre>';
die('');
class V{
var $q;
function W(){
echo 'Q';
}
}
?>
will make PHP crash,but
<?php
/*
***********************************************
== V ==
Designed by Alexander Fractal Soon ( Outrules )
Published under LGPL(ANY version).
***********************************************
*/
class T{
var $q;
function W(){
echo 'Q';
}
}
ob_start();
show_source(__FILE__);
$result=ob_get_contents();
ob_end_clean();
$a=false;
if ($a=='1'):
echo 'Hi';
endif;
while(false){
echo 'No';
}
$result=str_replace ("<br>", "\n", $result);
echo '<pre>'.strip_tags($result,'<font>').'</pre>';
die('');
;//if you add a executable statement here, it will be fine.
class V{
var $q;
function W(){
echo 'Q';
}
}
?>
is fine.
--
Edit Bug report at: http://bugs.php.net/?id=9742&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]