That's an interesting question, especially considering the fact that PHP 6 is on the horizon and the fact that all my webhosts run PHP 5. I suppose it's just to acheive maximum penetration: people ought to be able to use it in PHP 4 and PHP 5. Interestingly enough, I use PHP 5.1.4 for active development, and then switch to older versions to do spot-testing. The syntax is a small price to pay for actually quite easy backwards-compatibility: I've had very few problems with PHP 4 compat. In short: it's not that big of a deal to support PHP 4, so why not?Why have you choosen to write this for PHP 4?
How to document configuration directives
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Hmm... I think I'll defer writing the configuration generator till later. But sounds like an interesting side project.
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
No data hiding, no interfaces, no reflection, no spl, no exceptions etc. These are things I can't do without.AC wrote:so why not?
Mind you I am writing a big framework of code that specifically focuses on organisation and you are just really writing a very large algorithm so I think your reasons for choosing PHP 4 may well be justified. Personally would have gone for PHP 5 myself.
I thought it was an undisclosed time away, do you know something?PHP 6 is on the horizon
*ole leans closer*
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Why not? You can support multiple versions of PHP... especially if you want many people to actually use the software. I support two versions when I write code for public release.ole wrote:OT sorry:Why have you choosen to write this for PHP 4?AC wrote:Code: Select all
var
EDIT | I run two versions though.... I don't use "var" in PHP5 code.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Actually, I ignored all suggestions and went about and did this:
Comments?
Code: Select all
HTMLPurifier_ConfigDef::define(
'Attr', 'IDBlacklist', array(),
'Array of IDs not allowed in the document.');- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Well, I can't program in E_STRICT because SimpleTest throws too many darn E_STRICT errors when I do that. Maybe when Marcus releases the PHP 5 version (SimpleTest 2.0) I'll drop PHP 4 support. I haven't checked out any of SimpleTest's unreleased development code (although I am using 1.0.1alpha3), how does it shape up?
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK