|
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 |
Rival7 Smarty n00b
Joined: 17 Feb 2004 Posts: 2
|
Posted: Tue Feb 17, 2004 4:05 pm Post subject: Why doesn't Smarty pass the params by reference? |
|
|
I use the Smarty html_options function to build some rather large menu selections (2MB+) for a reporting system. Is there a reason why Smarty doesn't pass the $params by reference? This could surely speed some things up. Comments?
function smarty_function_html_options($params, &$smarty) |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Feb 17, 2004 5:45 pm Post subject: |
|
|
Only objects need to be passed by ref explicitly, PHP handles the $params value as a reference unless you alter it. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Feb 17, 2004 5:50 pm Post subject: |
|
|
hmmm. I was under the impression that large arrays benefited from explicit by-ref as well, but I may be mis-remembering. |
|
Back to top |
|
Rival7 Smarty n00b
Joined: 17 Feb 2004 Posts: 2
|
Posted: Mon Feb 23, 2004 6:08 pm Post subject: |
|
|
Can someone confirm is the this correct? Any documentation out there? Or is this a Zend optimizer feature? |
|
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
|