[wp-trac] [WordPress Trac] #21316: wp_check_php_mysql_versions() is broken in PHP 4
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 19 20:30:10 UTC 2012
#21316: wp_check_php_mysql_versions() is broken in PHP 4
-----------------------------+--------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4.2
Component: Upgrade/Install | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+--------------------
Description changed by SergeyBiryukov:
Old description:
> Since [19760].
>
> `wp_load_translations_early()` includes `functions.php`, which in turn
> includes `option.php`. This leads to the error message when running PHP
> 4:
> {{{
> Parse error: syntax error, unexpected T_VARIABLE in wp-
> includes/option.php on line 225
> }}}
> In 3.3, a proper error message was shown:
> {{{
> Your server is running PHP version 4.4.7 but WordPress 3.3.3 requires at
> least 5.2.4.
> }}}
>
> * http://wordpress.org/support/topic/can-anyone-help-parse-error-syntax-
> error
> * http://wordpress.org/support/topic/parse-error-when-trying-to-run-
> installphp
New description:
Since [19760].
`wp_load_translations_early()` includes `functions.php`, which in turn
includes `option.php`. This leads to the parse error when running PHP 4
(due to the `clone` keyword being used there):
{{{
Parse error: syntax error, unexpected T_VARIABLE in wp-includes/option.php
on line 225
}}}
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
includes/option.php#L224
In 3.3, a proper error message was shown:
{{{
Your server is running PHP version 4.4.7 but WordPress 3.3.3 requires at
least 5.2.4.
}}}
* http://wordpress.org/support/topic/can-anyone-help-parse-error-syntax-
error
* http://wordpress.org/support/topic/parse-error-when-trying-to-run-
installphp
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21316#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list