Joomla 1.0.13
VirtueMart 1.1 r1018
On php4 mod_virtuemart_login.php give the following error. (it is OK on php5)
QuoteParse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/example.com/public_html/modules/mod_virtuemart_login.php on line 75
Database Version: 4.1.21-standard
PHP Version: 4.4.7
Web Server: Apache/1.3.37
Confirmed for Joomla! 1.0.13 and 1.5 (r9251) and PHP 4.4.4
Quote
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/www/html/joomla3/modules/mod_virtuemart_login/mod_virtuemart_login.php on line 75
Works OK in both J! versions with PHP 5.2.4
Database Version: 4.1.22
PHP Version: 4.4.4 (and 5.2.4)
Web Server: Apache
VirtueMart 1.1: Ver. 1018
Joomla! Version: Joomla! 1.0.13 Stable [ Sunglow ]
Database Version: 4.1.22
PHP Version: 4.4.4 and (5.2.4)
Web Server: Apache
VirtueMart 1.1: Ver. 1018
Joomla! Version: Joomla! 1.5 Beta3+ Rev 9251 18/October
Just to add to this, the code in the mod is valid PHP5. As PHP4 is now at "end of life" with no more security updates it is certain to be removed from hosts in the same way that PHP3 was. MY host offers a choice of PHP4 or 5 - but has stated that in early 2008 PHP4 will be removed with PHP5 remaining. I can really see little point in rewriting the module so it will work in a soon to be gone environment.
Q&T note; tracker URL http://virtuemart.net/index.php?option=com_flyspray&Itemid=91&do=details&task_id=1519&option=com_flyspray&Itemid=91
Fixed in SVN rev. 1025. That code is now compatible with PHP 4 (and PHP 5, of course).
Greg