Bug #9742 Updated: "die" crash
| From: | jmoore@php.net | Date: | Sat, 28 Apr 2001 18:39:04 +0000 |
| Subject: | Bug #9742 Updated: "die" crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52735@lists.php.net to get a copy of this message | ||
ID: 9742
Updated by: jmoore
Reported By: princeali@263.net
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Can you please try:
<?php
class T{
var $q;
function W(){
echo 'Q';
}
}
die('');
class V{
var $q;
function W(){
echo 'Q';
}
}
?>
I cant reproduce this on any of my setups. Please reopen if this problem persists under 4.0.5 (when
its released) or 4.0.6-dev
Previous Comments:
---------------------------------------------------------------------------
[2001-03-14 11:14:51] princeali@263.net
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9742&edit=2