 |
|
Innovation award
 Nominee: 2x |
This class can be used to load and adapt a class according to the PHP version that is currently running.
It loads a given class script file and preprocess the code to make PHP version dependent adjustments.
It looks for special tags of the form %PHP# in comments of the class file to load. If the number in # matches the current PHP version, the lines are uncommented.
Version 2 now has tighter version control including ranges, as well as automatic variable globalization outside of classes and functions.
PROS: you can put if clause like structures into parts of your script otherwise inaccessible.
CONS: debugging loses effectiveness when errors occur. PHP locates all errors of included files in the eval statement.
I'm working on a FIX to the CON :-)
|
|
| Name: |
phpizer |
| Base name: |
phpizer |
| Description: |
Load and adapt class to current PHP version (3.x+) |
| Version: |
2.0 |
| PHP version: |
3.0 |
| License: |
GNU General Public License (GPL) |
| All time users: |
319 users |
| All time rank: |
6024 |
| Week users: |
0 users |
| Week rank: |
2363  |
| |
|
 November 2006
Number 3
Prize: One book of choice by Packt |
PHP has evolved a lot over the time. The way certain things can be done has changed according to the PHP version.
This class uses Aspect Oriented Programming principles to adapt PHP code according to the PHP version in use.
It provides means to add or remove different code sections depending on the PHP version that is running. This makes possible to write code that takes the most of the latest PHP versions, while it still runs on older versions.
Manuel Lemos |
| There are not enough user ratings to display for this class. |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| Link |
Description |
| Filebase |
can be used in association with, simply uncomment the appropriate lines in this project |
| |
Files |
|
|