Forums / Upgrading from 1.3.x to 1.3.9 / Manul PHP 5.3 Patch for 1.3.8a?

Manul PHP 5.3 Patch for 1.3.8a?

Locked

Started by limelites on 22 Apr 2010, 6:38 PM · Views: 4,653

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
22 Apr 2010, 6:38 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Manul PHP 5.3 Patch for 1.3.8a?

I'm running a couple of live sites on 1.3.8a and the list of patch files in the sticky above are pretty heavily modified on my sites.

Does anyone know of a list of manual edits for these patch files so that I don't need to use WinMerge?

22 Apr 2010, 8:08 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manul PHP 5.3 Patch for 1.3.8a?

Does anyone know of a list of manual edits for these patch files so that I don't need to use WinMerge?
the list of patch files in the sticky above are pretty heavily modified on my sites.
Not knowing what mods you have, how can a list of manual patches be created?

IIf you are refering to the changed files - they are in the change log with the distribution of 1.3.9

Zen-Venom Get Bitten

22 Apr 2010, 8:47 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Manul PHP 5.3 Patch for 1.3.8a?

WinMerge or similar is how you create the list of manual patches appropriate to your site.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Apr 2010, 9:11 PM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

It's just that in the sticky above, I seen a list of manual patches for version 1.3.7 and wondered is there was a list of similar patches for 1.3.8a.

22 Apr 2010, 9:51 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manul PHP 5.3 Patch for 1.3.8a?

It is/would be specific to the mods you have as to what would be contained and why as kuroi states you need to use a diff app to determine what they are

Zen-Venom Get Bitten

22 Apr 2010, 9:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Manul PHP 5.3 Patch for 1.3.8a?

limelites:

It's just that in the sticky above, I seen a list of manual patches for version 1.3.7 and wondered is there was a list of similar patches for 1.3.8a.
limelites, you're completely misunderstanding things.

The "sticky" you're referring to talks about patches relevant to particular versions of Zen Cart.
So, there are patches to apply to 1.3.7, if you're using 1.3.7
There are patches to apply to 1.3.8, if you're using 1.3.8
And (if there were any), there could be patches to apply to 1.3.9, if you're using 1.3.9.

There is no "patch" to convert you from 1.3.8 to 1.3.9. That's called an "upgrade".
You'll find upgrade instructions in the /docs/ folder of each version of Zen Cart. They are also in the FAQs area.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Apr 2010, 10:37 PM
#7
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

Sorry, excuse me for confusing everyone here, I wrote the OP in a hurry and it's not actually what I was trying to ask at all.

I should really start again as I'm not actully needing to go to 1.3.9a, all I really need is to ensure my sites will work with PHP 5.3 when the servers are upgraded.

The manual patch I'm asking about is the one that would patch my 1.3.8a files to work on PHP 5.3.

I seen in the sticky above that there's some manual patches for 1.3.7 and was wondering if there's a similar set of manual patches for 1.3.8a?

22 Apr 2010, 11:01 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Manul PHP 5.3 Patch for 1.3.8a?

Visit the News & Announcements section of the forum to see the announcement about the PHP 5.3 patch for 1.3.8 / 1.3.7

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Apr 2010, 11:15 PM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,728
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

Visit the News & Announcements section of the forum to see the announcement about the PHP 5.3 patch for 1.3.8 / 1.3.7

Though, you really should consider upgrading since it contains all of the security updates and bug fixes in addition to the php5.3 changes.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Apr 2010, 11:28 PM
#10
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

DrByte:

Visit the News & Announcements section of the forum to see the announcement about the PHP 5.3 patch for 1.3.8 / 1.3.7

Can't seem to find that :blink:

22 Apr 2010, 11:32 PM
#11
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

If you mean this one:

http://www.zen-cart.com/forum/showthread.php?t=140960

Then that's the thread I'm referring to from the start. It has a bunch of files for 1.3.8a patch, but it offers manual patches for 1.3.7

I was wondering if there was a manual patch list for 1.3.8a?

22 Apr 2010, 11:52 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Manul PHP 5.3 Patch for 1.3.8a?

limelites:

If you mean this one:

http://www.zen-cart.com/forum/showthread.php?t=140960

Then that's the thread I'm referring to from the start. It has a bunch of files for 1.3.8a patch, but it offers manual patches for 1.3.7

I was wondering if there was a manual patch list for 1.3.8a?
No. You can easily create a list of actual changes using WinMerge yourself.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Apr 2010, 12:07 AM
#13
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

It's just that having my existing files already heavily modified, it's pretty hard to tell if (a) the changes highlighted by WinMerge are due to the mods or (b) if the changes highlighted are due to the 5.3 compatibility patches.

It's also pretty difficult to tell which mod has brought about the changes to the individual files and thereby determine if it's a PHP 5.3 compatible mod.

Example, in admin/orders.php I can see that date_diff needs to change to zen_date_diff.............. However, I have a mod with commands like, date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR), ................ and I'm wondering if that would need changed to, zen_date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR),

I think I'll get a quote from someone with more experience :lookaroun:unsure:

23 Apr 2010, 12:16 AM
#14
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

You would have to winmerge the 5.3 patch files against a stock set of 1.3.8a files to build yourself a list of the changes, and then you could take that list to patch your customized files. Its gonna be a multistep project.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

23 Apr 2010, 7:49 AM
#15
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

OK, last question on this hopefully.

I’ve gone through all the patch files and WinMerged them with my existing files. It wasn't as difficult as I'd anticipated and I’m pretty confident that I’ve did it correctly. Thanks for the pointer on the two stage merging process.

My question now is, ‘is it ok to upload the new patched files to the server and replace the current files, even though the server isn’t running PHP 5.3.x yet?’

23 Apr 2010, 7:56 AM
#16
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

Yes. PHP 5.3 removes some older functions that ZenCart had still been using. Replacement, improved, functions had already been added to PHP very many versions ago. The updates to Zencart change these functions to use ones still in PHP 5.3 but which are also in previous versions of PHP.

Online since 1995.

24 Apr 2010, 10:36 AM
#17
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

OK, I've WinMerged my 1.4.8a files with the patch files and then Winmerged with my mod files. I've uploaded them all to the server on a test site, but before I upload these same files to my main live site, is there anything in particular you think I should test for?

If anything's gone wrong, what's it likely to be? Other than the mods, what functionality should I be testing to make sure I've patched these files correctly?

24 Apr 2010, 10:40 AM
#18
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

Unfortunately the best advice is "test everything". There's no knowing what has been missed or might contain an error.

Online since 1995.

24 Apr 2010, 10:52 AM
#19
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Manul PHP 5.3 Patch for 1.3.8a?

Not the answer I was looking for, but cset la vie.

I've noticed something odd straight away. PayPal is no longer calculating the shipping costs!

24 Apr 2010, 11:50 AM
#20
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Manul PHP 5.3 Patch for 1.3.8a?

I didn't think that Paypal ever did calculate the shipping costs. That's the responsibility of the relevant shipping mod, not your payment mod.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)