You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,6 +52,9 @@ public function __construct($script, $cwd = null, array $env = null, $timeout =
52
52
// command with exec
53
53
$php = 'exec '.$php;
54
54
}
55
+
if (null !== $options) {
56
+
@trigger_error(sprintf('The $options parameter of the %s constructor is deprecated since version 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
@trigger_error(sprintf('The $options parameter of the %s constructor is deprecated since version 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
@trigger_error(sprintf('Not-inheriting environment variables is deprecated since Symfony 3.3 and will always happen in 4.0. Call "Process::inheritEnvironmentVariables()" instead before running the command.', __METHOD__), E_USER_DEPRECATED);
284
285
}
285
286
if ('\\' === DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
thrownewRuntimeException('Unable to launch a new process.');
314
310
}
@@ -1148,9 +1144,13 @@ public function setInput($input)
1148
1144
* Gets the options for proc_open.
1149
1145
*
1150
1146
* @return array The current options
1147
+
*
1148
+
* @deprecated since version 3.3, to be removed in 4.0.
1151
1149
*/
1152
1150
publicfunctiongetOptions()
1153
1151
{
1152
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1153
+
1154
1154
return$this->options;
1155
1155
}
1156
1156
@@ -1160,9 +1160,13 @@ public function getOptions()
1160
1160
* @param array $options The new options
1161
1161
*
1162
1162
* @return self The current Process instance
1163
+
*
1164
+
* @deprecated since version 3.3, to be removed in 4.0.
1163
1165
*/
1164
1166
publicfunctionsetOptions(array$options)
1165
1167
{
1168
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1169
+
1166
1170
$this->options = $options;
1167
1171
1168
1172
return$this;
@@ -1174,9 +1178,13 @@ public function setOptions(array $options)
1174
1178
* This is true by default.
1175
1179
*
1176
1180
* @return bool
1181
+
*
1182
+
* @deprecated since version 3.3, to be removed in 4.0. Enhanced Windows compatibility will always be enabled.
1177
1183
*/
1178
1184
publicfunctiongetEnhanceWindowsCompatibility()
1179
1185
{
1186
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Enhanced Windows compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
1187
+
1180
1188
return$this->enhanceWindowsCompatibility;
1181
1189
}
1182
1190
@@ -1186,9 +1194,13 @@ public function getEnhanceWindowsCompatibility()
1186
1194
* @param bool $enhance
1187
1195
*
1188
1196
* @return self The current Process instance
1197
+
*
1198
+
* @deprecated since version 3.3, to be removed in 4.0. Enhanced Windows compatibility will always be enabled.
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Enhanced Windows compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
@@ -1198,9 +1210,13 @@ public function setEnhanceWindowsCompatibility($enhance)
1198
1210
* Returns whether sigchild compatibility mode is activated or not.
1199
1211
*
1200
1212
* @return bool
1213
+
*
1214
+
* @deprecated since version 3.3, to be removed in 4.0. Sigchild compatibility will always be enabled.
1201
1215
*/
1202
1216
publicfunctiongetEnhanceSigchildCompatibility()
1203
1217
{
1218
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Sigchild compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
1219
+
1204
1220
return$this->enhanceSigchildCompatibility;
1205
1221
}
1206
1222
@@ -1214,9 +1230,13 @@ public function getEnhanceSigchildCompatibility()
1214
1230
* @param bool $enhance
1215
1231
*
1216
1232
* @return self The current Process instance
1233
+
*
1234
+
* @deprecated since version 3.3, to be removed in 4.0.
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Sigchild compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Environment variables will always be inherited. To silence this notice, set the second argument of "Process::inheritEnvironmentVariables()" to "false", then wrap the call in a "method_exists()" check.', __METHOD__), E_USER_DEPRECATED);
1258
+
}
1259
+
1234
1260
$this->inheritEnv = (bool) $inheritEnv;
1235
1261
1236
1262
return$this;
@@ -1240,9 +1266,13 @@ public function inheritEnvironmentVariables($inheritEnv = true)
1240
1266
* Returns whether environment variables will be inherited or not.
1241
1267
*
1242
1268
* @return bool
1269
+
*
1270
+
* @deprecated since version 3.3, to be removed in 4.0. Environment variables will always be inherited.
1243
1271
*/
1244
1272
publicfunctionareEnvironmentVariablesInherited()
1245
1273
{
1274
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. Environment variables will always be inherited.', __METHOD__), E_USER_DEPRECATED);
1275
+
1246
1276
return$this->inheritEnv;
1247
1277
}
1248
1278
@@ -1561,6 +1591,44 @@ private function doSignal($signal, $throwException)
0 commit comments