We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

PHP 5?

Development and Programming

mweichert's avatar
mweichert
68 posts
17 years ago
mweichert's avatar mweichert

When using PHP 5 syntax, I get errors. Is EE not PHP5 compliant? Will it be in v2.0?

Thanks, Mike

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

Could you be slightly more specific? What have you tried, what error did you get? I am running EE under PHP 5 without any issues. In fact while EE will work with php 4.x as well, some third-party plugins or extensions won’t.

       
mweichert's avatar
mweichert
68 posts
17 years ago
mweichert's avatar mweichert

When creating a control panel for my module, I was using:

<?php
  class Sphinx_CP
  {
    public $version = "0.1";
  }
?>

I had to change that to:

<?php
  class Sphinx_CP
  {
    var $version = "0.1";
  }
?>

Thanks for your help.

Cheers, Mike

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.