From:             ben dot keen at gmail dot com
Operating system: Linux
PHP version:      5.3.0beta1
PHP Bug Type:     Reproducible crash
Bug description:  blank page: due to having function in PHP page

Description:
------------
This was actually found on 5.2.8, the current main PHP release (not sure
why it's not listed in the PHP version dropdown on the bug report page...
??)

The problem is this: I'm importing a number of PHP files with
require_once() into a main page but I get a blank page. I debugged it down
to two lines of code in one of the files file that is being included. These
two lines are inside a function that is NOT called, however.

  if (!$something)
    ft_handle_error("one" . "two" . "three", mysql_error());

When I comment these two lines out, the page loads fine. No errors,
notifications or warnings are displayed. When I remove one (any) of the
strings being concatenated in the first function parameter, the page loads
fine. In other words, when I change the lines to any of these, the page
loads fine:

  if (!$something)
    ft_handle_error("two" . "three", mysql_error());

As does:

  if (!$something)
    ft_handle_error("one" . "three", mysql_error());

As does:

  if (!$something)
    ft_handle_error("one" . "two", mysql_error());

Two final things to mention: when I remove the second mysql_error()
parameter but keep all three strings being concatenated in the first
parameter, the page loads. Also, when I remove the if (!$something)
condition and keep all three strings being concatenated again, it also
works fine. The actual strings being concatenated don't seem to make any
difference.

I'm well beyond confused. Debugging tips?

Reproduce code:
---------------
  if (!$something)
    ft_handle_error("one" . "two" . "three", mysql_error());


Expected result:
----------------
The page should load for ANY of the lines of PHP code mentioned.


-- 
Edit bug report at http://bugs.php.net/?id=47459&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47459&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47459&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47459&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47459&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47459&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47459&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47459&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47459&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47459&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47459&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47459&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47459&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47459&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47459&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47459&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47459&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47459&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47459&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47459&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47459&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47459&r=mysqlcfg

Reply via email to