|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
robdawg Smarty Rookie
Joined: 15 Jul 2005 Posts: 13
|
Posted: Thu Jul 21, 2005 7:00 pm Post subject: [RESOLVED] Smarty Validate Reference Error with PHP 4.4.0 |
|
|
Notice: Only variable references should be returned by reference in /www/r/robdawg/htdocs/libs/SmartyValidate.class.php on line 614
I have the latest version of smarty from CVS. The form doesn't even seem to be validating at all.
Anyone else having these problems and have some fixes for them?
Thanks.
Rob
Last edited by robdawg on Thu Jul 21, 2005 9:05 pm; edited 1 time in total |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Jul 21, 2005 7:18 pm Post subject: |
|
|
Looks like the final else condition (line 611) is not returning anything. Should be as simple as replacing:
[php:1:54f925cd62] } else {
$_objects[$name] =& $object;
}[/php:1:54f925cd62]
with:
[php:1:54f925cd62] } else {
$_objects[$name] =& $object;
return $object;
}[/php:1:54f925cd62]
I would commit the change to CVS but I fogot my password (oops!). I'm sure Monte will fix it soon enough. In the meantime, PHP 4.4 complains about these problems by issuing a notice -- but it should still behave the same way as previous versions. |
|
Back to top |
|
robdawg Smarty Rookie
Joined: 15 Jul 2005 Posts: 13
|
Posted: Thu Jul 21, 2005 9:04 pm Post subject: |
|
|
thanks for the response. fixed it. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|