Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4b7c879c
Commit
4b7c879c
authored
Jan 21, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Defined STDOUT in entry scripts in case console application is running via CGI
parent
586803da
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
yii
apps/advanced/environments/dev/yii
+2
-1
yii
apps/advanced/environments/prod/yii
+2
-1
yii
apps/basic/yii
+2
-1
build
build/build
+2
-1
console.md
docs/guide/console.md
+2
-1
yii
framework/yii
+2
-1
No files found.
apps/advanced/environments/dev/yii
View file @
4b7c879c
...
@@ -11,8 +11,9 @@
...
@@ -11,8 +11,9 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'dev'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'dev'
);
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
...
...
apps/advanced/environments/prod/yii
View file @
4b7c879c
...
@@ -11,8 +11,9 @@
...
@@ -11,8 +11,9 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
false
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
false
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'prod'
);
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
'prod'
);
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
...
...
apps/basic/yii
View file @
4b7c879c
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
...
...
build/build
View file @
4b7c879c
...
@@ -8,8 +8,9 @@
...
@@ -8,8 +8,9 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
define
(
'YII_DEBUG'
,
true
);
define
(
'YII_DEBUG'
,
true
);
...
...
docs/guide/console.md
View file @
4b7c879c
...
@@ -41,8 +41,9 @@ code like the following:
...
@@ -41,8 +41,9 @@ code like the following:
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
...
...
framework/yii
View file @
4b7c879c
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
// fcgi doesn't have STDIN defined by default
// fcgi doesn't have STDIN
and STDOUT
defined by default
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDIN'
,
fopen
(
'php://stdin'
,
'r'
));
defined
(
'STDIN'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/Yii.php'
);
require
(
__DIR__
.
'/Yii.php'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment