From:             johnjawed at gmail dot com
Operating system: Fedora/Windows XP
PHP version:      5.0.3
PHP Bug Type:     Reproducible crash
Bug description:  Object calls fail within same method

Description:
------------
The following code should print "Bugged". It does not. Furthermore, it
seems the phpout stream stops completely because any further text after
the function will not be outputted...whether it's printed via one of PHP's
functions or just in regular text. To me, it seemed like a fatal error
occured but without any sort of message (discounting the "This document
contains no data" message from Firefox).

The behavior is identical on both my Fedora and Windows XP box with
Apache2 and Apache 1.3. 

I did a little experiment with it on my Windows box. I uncommented this:

;extension=php_mysql.dll

As I did not need to use this before (MySQLi is better 8) ). However, I
dropped the libmysql.dll from the system altogether to make PHP complain
about "Entry point missing for php_mysql.dll", which is a warning but will
still load PHP just fine (minus MySQL of course).

I went back to the bugged script, and as I was hoping, it complained
"Entry point missing for php_mysql.dll". I believe that this bug actually
causes PHP to reload it's extensions.

My setup (identical across both systems):

PHP5.0.3 w/
MySQLi
PostgreSQL
cURL
gd2
Apache2 (2.5.2) alternatively Apache 1.3

Reproduce code:
---------------
<?PHP
class clsWhatever {
        
        public function CheckBug() {
                if(clsWhatever::CheckBug())
                return true;
                else
                return true;
        }
}

class clsSecondClass {

        public function invokeBug() {
                if(clsWhatever::CheckBug()) {
                        print("Bugged");
                }
        }
}

clsSecondClass::invokeBug();

?>

Expected result:
----------------
Nothing, that's the problem. 8p

Actual result:
--------------
No backtrace available, debugger won't pickup file since nothing is ever
sent to the browser to begin with.

-- 
Edit bug report at http://bugs.php.net/?id=31604&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31604&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31604&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31604&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31604&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31604&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31604&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31604&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31604&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31604&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31604&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31604&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31604&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31604&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31604&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31604&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31604&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31604&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31604&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31604&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31604&r=mysqlcfg

Reply via email to