@ini_set('zend.ze1_compatibility_mode', '0');

744 views
Skip to first unread message

Amy Stephen

unread,
May 18, 2011, 3:28:32 PM5/18/11
to joomla-dev...@googlegroups.com
Should this:

@ini_set('zend.ze1_compatibility_mode', '0');

be removed from the framework.php files?

It is really for php 4, deprecated and removed in 5.3

http://www.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode
Message has been deleted

Paladin

unread,
May 18, 2011, 5:41:17 PM5/18/11
to Joomla! Framework Development
Not sure if it would matter. Since it's being set to 0 or false, it's
turning that mode off (which is the default setting of it as well).
Since it's the default value, I suspect it's been put in because
someone ran into a server somewhere that had "helpfully" turned it on
to keep PHP4 code from misbehaving under PHP5 (while ensuring PHP5
code *would* misbehave).

Leaving it in ensures the option will be off, no matter what the
server .ini file says, while taking it out leaves us open to a
misconfigured server, at worst case, while worst case of leaving it in
is a few spent cpu cycles. I think we should probably leave it in
until we set 5.3 as minimum PHP, currently the minimum is 5.2.4 IIRC.
(Although since the PHP folks have eol'ed 5.2.x, we should consider
going to a 5.3 minimum sometime in the next few releases, shouldn't
we?)
> http://www.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-...

Amy Stephen

unread,
May 18, 2011, 6:32:02 PM5/18/11
to joomla-dev...@googlegroups.com
I should have been more clear.

I am thinking that since Joomla! no longer supports PHP 4 it might be a good time to remove a parameter used only for that version.

The flip side of that is that the directive is removed in 5.3 anyway.

Not a serious issue, just a random piece of code that might be forgotten and is not needed (if I understand correctly.)

Andrew Eddie

unread,
May 18, 2011, 6:41:28 PM5/18/11
to joomla-dev...@googlegroups.com
Agree with Arlen - safer to not have to worry about it until we set
the min spec's for the platform to PHP 5.3, which shouldn't be too far
away.

Regards,
Andrew Eddie
http://learn.theartofjoomla.com - training videos for Joomla 1.6 developers

> --
> You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
> To post to this group, send an email to joomla-dev...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-frame...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-framework?hl=en-GB.
>
>

Sam Moffatt

unread,
May 18, 2011, 7:08:42 PM5/18/11
to joomla-dev...@googlegroups.com
I feel you misunderstand the setting. It is a setting for PHP5 (Zend
Engine 2) that makes it behave like PHP4 (Zend Engine 1). As noted by
Arlen, it is something useful to set in case a hosting provider has
decided to be helpful.

If you read the page you link in your first email at the top you will
see this note:
zend.ze1_compatibility_mode "0" PHP_INI_ALL Available since PHP 5.0.0.
Removed in PHP 5.3.0

According to this documentation, the parameter is only used in PHP5.x
until PHP5.3 - in such a parameter that wasn't used at all for PHP4.

Cheers,

Sam Moffatt
http://pasamio.id.au

Amy Stephen

unread,
May 18, 2011, 10:29:17 PM5/18/11
to joomla-dev...@googlegroups.com
Thanks Sam - I did indeed misunderstand that.

Sorry Arlen.
Reply all
Reply to author
Forward
0 new messages