ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

Problem with ADODB Data Dictionary - foreach()

Author Message
agileco



Joined: 10 May 2005
Posts: 1

PostPosted: Tue May 10, 2005 7:34 pm    Post subject: Problem with ADODB Data Dictionary - foreach() Reply with quote

Hello,

One of our clients has reported problems with foreach() loops returning an empty array when using Ioncube...

See: http://forum.agileco.com/showthread.php?t=811
See: http://forum.agileco.com/showpost.php?p=4007&postcount=8

I have verified this problem - our script uses the ADODB Data Dictionary class to create the tables and the functions that make use of foreach() are returning an empty array.

Have tried using the latest version of ADODB and the error persists.

Customer's Tech Details:

FreeBSD 4.7
Apache/1.3.33
PHP 4.3.10
MySQL 4.0.24

Any suggestions?
Back to top
View user's profile Send private message
jon
Site Admin


Joined: 15 Dec 2004
Posts: 23

PostPosted: Thu May 12, 2005 10:37 pm    Post subject: Reply with quote

> One of our clients has reported problems with foreach() loops returning an empty array

I bet they have an old version of the Loader installed.

Changes were made in recent versions of PHP 4.3.x which broke the behaviour of 'foreach'. Loaders released a few months ago resolved this issue.
Back to top
View user's profile Send private message Send e-mail
agileco.com
Guest





PostPosted: Fri May 13, 2005 6:24 pm    Post subject: Reply with quote

Ahh! All that looking through the ADODB code and it was due to an out of date loader (the customer thought he had the latest).

Thanks, this solved the problem.
Back to top
mariachi



Joined: 05 Aug 2005
Posts: 1

PostPosted: Fri Aug 05, 2005 5:48 pm    Post subject: Problem returns! Reply with quote

Seems like the first release of the 4.4 loaders reintroduced this bug; I have just spent hours tracking it down. Finally discovered that newer 4.4 loaders have been released.

Is there any way registered users can be notified of loader releases, especially when they are bug fixes? Or perhaps the loaders download page could show release dates so that developers can spot new releases?
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2788

PostPosted: Fri Aug 05, 2005 6:13 pm    Post subject: Reply with quote

Hi

Thanks for the suggestion. We have had discussions open here for some time as to the best way(s) to provide a notification of software updates, and we will be initroducing mechanisms for this.

Please note that the foreach() issue was in fact not reintroduced in the 4.4 Loaders, and we have both strict revision control and product release procedures plus a substantial test suite to avoid something like that.

The original foreach() issue was also actually never a bug, but as mentioned elsewhere, happened when the PHP Group chose to backport work from the future PHP 5.1 release into PHP 4.3.10. Doing this caused the behaviour of PHP 4.3 to change and to become incompatible with products working with 4.3. This affected all providers of similar tools, including Zend and SG, and required a Loader update. Normally, minor PHP revisions do not contain fundamental engine changes, with those being reserved for the major PHP releases, but the 4.3.10 release broke the "rule" on that occasion.

The newer foreach() issue with PHP 4.4 was due to an issue in some versions of Zend Optimiser, and whilst the effect was similar, the reasons were wholy different. The Loader was quickly updated to work around the problems in Zend Optimiser and a new release made. foreach() was only affected if Zend Optimiser was installed.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
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