PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
php4 - php5 differences

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
sutterp



Joined: 16 Apr 2008
Posts: 6
Location: Western Australia

PostPosted: Sun Apr 20, 2008 3:52 am    Post subject: php4 - php5 differences Reply with quote

I just started using Structures_DataGrid and obviously I overlooked something.

My development environment is using php5, production is still on php4.

The few programs I wrote, run all fine under php5, yet in production under php4 they produce the following errors:

Code:
Warning: Cannot use a scalar value as an array in /usr/local/lib/php/Structures/DataGrid/Renderer/Smarty.php on line 283
 
 Notice: Undefined index: attributes in /usr/local/lib/php/Structures/DataGrid/Renderer/Smarty.php on line 300


Although these are just warnings and notices, I need to understand why these happen, so that I can write 'clean; code.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Sun Apr 20, 2008 10:35 am    Post subject: Reply with quote

Structures_DataGrid (SDG) is in general compatible with both PHP 4 and PHP 5.

Please provide more details about your code. It's good that you've cited the error messages, but I can't analyze the problem without seeing how you use the Smarty renderer of SDG.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software