omda12 / akelosframework

Automatically exported from code.google.com/p/akelosframework
GNU Lesser General Public License v2.1
0 stars 0 forks source link

\PATCH Correct lib/AkImage.php to add compatibility with php 5.2.0 #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
since php 5.2.0 pathinfo() has been improved. A new item to the returned
tab has been added. Before the last item was 'extension' and now it's
'filename'. 

So now, to get the extension, it's not possible to use
array_pop(pathinfo($path)) as it returns the filename. 

I added also an Exception if Transform::&factory returns an error (if GD is
not install for exemple).

Original issue reported on code.google.com by jerome.l...@gmail.com on 9 Apr 2007 at 7:10

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out, I was not aware of this change on PHP.

I've made some changes on your patch and removed "pathinfo" usage whenever it 
was
possible.

I've committed the changes on rev.174

Original comment by bermifer...@gmail.com on 9 Apr 2007 at 9:17

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bermifer...@gmail.com on 12 Apr 2007 at 9:20