From:             nologic at pchome dot com dot tw
Operating system: windows2000sp4
PHP version:      5CVS-2003-07-16 (dev)
PHP Bug Type:     Class/Object related
Bug description:  Fatal error: Only variables or references can be returned by 
reference

Description:
------------
apache_2.0.47-win32-x86-no_ssl
XOOPS203 ( http://www.xoops.org )

For install:

    php5-win32-200307162230 => Fatal Error !
    php4.3.2                => succeeded !


sorry...my English is poor.
    


Reproduce code:
---------------
class TextSanitizer
{
function &htmlSpecialChars($text)
 {
line 96 -> return preg_replace("/&/i", '&', htmlspecialchars($text,
ENT_QUOTES));
 }
}

Expected result:
----------------
Fatal error: Only variables or references can be returned by reference in
D:\www\xoops2\html\install\class\textsanitizer.php on line 96


-- 
Edit bug report at http://bugs.php.net/?id=24687&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24687&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24687&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24687&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24687&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24687&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24687&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24687&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24687&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24687&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24687&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24687&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24687&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24687&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24687&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24687&r=gnused

Reply via email to