wkempees
Posts: 1679
|
| Posted: 07/05/2008, 11:20 AM |
|
Quote jjrjr1:
BTW..
I have tried to get YES to admit there is a problem with their code when changing to PHP5.
If you look in the Common.php file you will see that the version check stays at checking for version 4. I sort of thing if you change to PHP5 that check should change to check for ver 5.
SO when ever I select version 5 as language I modify that version check manually in Common.php.
For the encode extention iconv to work properly PHP5 or greater is required.
Bye for Now.
$PHPVersion = explode(".", phpversion());
if (($PHPVersion[0] < 4) || ($PHPVersion[0] == 4 && $PHPVersion[1] < 1)) {
echo "Sorry. This program requires PHP 4.1 and above to run. You may upgrade your php at <a href='http://www.php.net/downloads.php'>http://www.php.net/downloads.php</a>";
exit;
}
Is it the above code snippet you refer to?
Project Settings General lets us set "PHP4/PHP5...."
Project Settings Server/Script lets us set "PhP Version: 4.x or 5.x"
On a regular app, generating with 4.x or 5.x generates an identical Common.php.
The code snippet above is (IMHO) only to make sure that the minimal version is 4.0.
The snippet does not (AFAIC) use any of the Project Settings.
Please prove me wrong.
I hate, and think anyone should avoid, to alter Common.php, so if you really have found a bug there, I would love to know what it is.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 07/05/2008, 11:36 AM |
|
Hey Walter
Yes that is the code I am talking about. I would think if you select php 5 for the project this code should be changed by CCS to reflect that.
According to YES the code generated is slightly different in some cases that is incompatible with ver 4.
The situation I came across yesterday was if you select encode extentions CCS even warns you that there might be a problem if you you are not running version 5 when you publish it.
I guess if the IDE warns you that you must be running version 5, don't you think the version check should check for that as well.
Don't know. YES agrees with you.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
wkempees
Posts: 1679
|
| Posted: 07/05/2008, 12:40 PM |
|
Ok, so I thread very carefully here.....
If YES does acknowledge (some) different code is generated when the Server/Script setting is 4.x or 5.x to cater for incompatabilities, then the application would be sensitive to the (testing/publishing) server running php 4.x or 5.x.
Then that same switch should influence the code snippet to make sure 5.x is installed when 5.x is generated.
This would validate you changing the common.php, which I hate.
Let us see if we catch some more reactions.
respect,
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|