Skip to content

Commit

Permalink
Updated docs, composer.json and other things to mention and use PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Oct 18, 2013
1 parent c3ba7f6 commit e115b0c
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DIRECTORY STRUCTURE
REQUIREMENTS
------------

The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
The minimum requirement by Yii is that your Web server supports PHP 5.4.


DOCUMENTATION
Expand Down
2 changes: 1 addition & 1 deletion apps/advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ environments/ contains environment-based overrides
REQUIREMENTS
------------

The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
The minimum requirement by Yii is that your Web server supports PHP 5.4.0.

In order for captcha to work you need either GD2 extension or ImageMagick PHP extension.

Expand Down
2 changes: 1 addition & 1 deletion apps/advanced/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DIRECTORY STRUCTURE
REQUIREMENTS
------------

The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
The minimum requirement by Yii is that your Web server supports PHP 5.4.0.

In order for captcha to work you need either GD2 extension or ImageMagick PHP extension.

Expand Down
2 changes: 1 addition & 1 deletion apps/basic/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DIRECTORY STRUCTURE
REQUIREMENTS
------------

The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
The minimum requirement by Yii is that your Web server supports PHP 5.4.0.


INSTALLATION
Expand Down
2 changes: 1 addition & 1 deletion apps/benchmark/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master"
}
}
2 changes: 1 addition & 1 deletion docs/guide/apps-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ directory:
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/apps-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ directory:
},
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-composer": "dev-master"
},
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ script via the following URL in a Web browser:
http://hostname/path/to/yii/requirements/index.php
~~~

Yii requires PHP 5.3.7, so the server must have PHP 5.3.7 or above installed and
Yii requires PHP 5.4.0, so the server must have PHP 5.4.0 or above installed and
available to the web server. Yii has been tested with [Apache HTTP server](http://httpd.apache.org/)
on Windows and Linux. It may also run on other Web servers and platforms,
provided PHP 5.3 is supported.
provided PHP 5.4 is supported.


Recommended Apache Configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Requirements
------------

To run a Yii-powered Web application, you need a Web server that supports
PHP 5.3.? or greater.
PHP 5.4.0 or greater.

For developers who want to use Yii, understanding object-oriented
programming (OOP) is very helpful, because Yii is a pure OOP framework.
Expand Down
2 changes: 1 addition & 1 deletion framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ without prior notices. **Yii 2.0 is not ready for production use yet.**
REQUIREMENTS
------------

The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
The minimum requirement by Yii is that your Web server supports PHP 5.4.0.


2 changes: 1 addition & 1 deletion framework/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"source": "https://github.com/yiisoft/yii2"
},
"require": {
"php": ">=5.3.7",
"php": ">=5.4.0",
"ext-mbstring": "*",
"lib-pcre": "*",
"phpspec/php-diff": "1.0.*",
Expand Down
3 changes: 1 addition & 2 deletions framework/yii/db/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ class Connection extends Component
* as specified by the database.
*
* Note that if you're using GBK or BIG5 then it's highly recommended to
* update to PHP 5.3.6+ and to specify charset via DSN like
* 'mysql:dbname=mydatabase;host=127.0.0.1;charset=GBK;'.
* specify charset via DSN like 'mysql:dbname=mydatabase;host=127.0.0.1;charset=GBK;'.
*/
public $charset;
/**
Expand Down
4 changes: 2 additions & 2 deletions framework/yii/requirements/requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
array(
'name' => 'PHP version',
'mandatory' => true,
'condition' => version_compare(PHP_VERSION, '5.3.7', '>='),
'condition' => version_compare(PHP_VERSION, '5.4.0', '>='),
'by' => '<a href="http://www.yiiframework.com">Yii Framework</a>',
'memo' => 'PHP 5.3.7 or higher is required.',
'memo' => 'PHP 5.4.0 or higher is required.',
),
array(
'name' => 'Reflection extension',
Expand Down

0 comments on commit e115b0c

Please sign in to comment.