Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Call-time pass-by-reference has been removed
#3
PHP is now primarily tested on 5.3 but I'm pretty certain it'll work just fine on 5.2 too. 5.4 brought about some code-breaking changes.

To fix this specific issue you can replace
PHP Code:
preg_match_all('/(<(?:a|img) (?:href|src)=(?:"|\'))([-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|])((?:"|\')[a-z0-9]*[^<>]*\/?>)/si'$item['summary'], &$matchesPREG_SET_ORDER); 
with
PHP Code:
preg_match_all('/(<(?:a|img) (?:href|src)=(?:"|\'))([-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|])((?:"|\')[a-z0-9]*[^<>]*\/?>)/si'$item['summary'], $matchesPREG_SET_ORDER); 
Kevin Mark - TheHostingTool Lead Developer
Reply


Messages In This Thread
RE: Fatal error: Call-time pass-by-reference has been removed - by Kevin - 01-20-2013, 08:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)