#24687 [NEW]: Fatal error: Only variables or references can be returned by reference
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
Thread (19 messages)
- nologic at pchome dot com dot tw
- sniper@php.net#24687 [Opn->Bgs]: Fatal error: Only variables or references can be returned by reference
- derick@php.net#24687 [Bgs->Opn]: Fatal error: Only variables or references can be returned by reference
- zeev@php.net#24687 [Opn->Ana]: Fatal error: Only variables or references can be returned by reference
- derick@php.net#24687 [Ana]: Fatal error: Only variables or references can be returned by reference
- sniper@php.net#24687 [Ana->Asn]: Fatal error: Only variables or references can be returned by reference
- zeev@php.net#24687 [Asn->Ana]: Fatal error: Only variables or references can be returned by reference
- mikkel at linet dot dk#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- jan at horde dot org#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- sniper@php.net#24687 [Ana->Opn]: Fatal error: Only variables or references can be returned by reference
- sniper@php.net#24687 [Opn->WFx]: Fatal error: Only variables or references can be returned by reference
- waboring at 3gstech dot com#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- suren at qualys dot com#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- derick@php.net#24687 [WFx->Opn]: Fatal error: Only variables or references can be returned by reference
- mag at alcormizar dot cjb dot net#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- kain at kuht dot it#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- zhundiak at comcast dot net#24687 [Com]: Fatal error: Only variables or references can be returned by reference
- sniper@php.net#24687 [Opn->Asn]: Fatal error: Only variables or references can be returned by reference
- andi@php.net#24687 [Asn->Csd]: Fatal error: Only variables or references can be returned by reference