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
if (false === $php = $executableFinder->find(false)) {
@@ -48,11 +47,8 @@ public function __construct($script, $cwd = null, array $env = null, $timeout =
48
47
$php[] = $file;
49
48
$script = null;
50
49
}
51
-
if (null !== $options) {
52
-
@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('The %s::start() method expects a second "$env" argument since version 3.3. It will be made mandatory in 4.0.', static::class), E_USER_DEPRECATED);
@trigger_error('Not inheriting environment variables is deprecated since Symfony 3.3 and will always happen in 4.0. Set "Process::inheritEnvironmentVariables()" to true instead.', E_USER_DEPRECATED);
320
294
}
321
295
if ('\\' === DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
322
296
$this->options['bypass_shell'] = true;
@@ -375,12 +349,11 @@ public function start(callable $callback = null/*, array $env = array()*/)
@@ -1178,108 +1151,6 @@ public function setInput($input)
1178
1151
return$this;
1179
1152
}
1180
1153
1181
-
/**
1182
-
* Gets the options for proc_open.
1183
-
*
1184
-
* @return array The current options
1185
-
*
1186
-
* @deprecated since version 3.3, to be removed in 4.0.
1187
-
*/
1188
-
publicfunctiongetOptions()
1189
-
{
1190
-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1191
-
1192
-
return$this->options;
1193
-
}
1194
-
1195
-
/**
1196
-
* Sets the options for proc_open.
1197
-
*
1198
-
* @param array $options The new options
1199
-
*
1200
-
* @return self The current Process instance
1201
-
*
1202
-
* @deprecated since version 3.3, to be removed in 4.0.
1203
-
*/
1204
-
publicfunctionsetOptions(array$options)
1205
-
{
1206
-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1207
-
1208
-
$this->options = $options;
1209
-
1210
-
return$this;
1211
-
}
1212
-
1213
-
/**
1214
-
* Gets whether or not Windows compatibility is enabled.
1215
-
*
1216
-
* This is true by default.
1217
-
*
1218
-
* @return bool
1219
-
*
1220
-
* @deprecated since version 3.3, to be removed in 4.0. Enhanced Windows compatibility will always be enabled.
1221
-
*/
1222
-
publicfunctiongetEnhanceWindowsCompatibility()
1223
-
{
1224
-
@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);
1225
-
1226
-
return$this->enhanceWindowsCompatibility;
1227
-
}
1228
-
1229
-
/**
1230
-
* Sets whether or not Windows compatibility is enabled.
1231
-
*
1232
-
* @param bool $enhance
1233
-
*
1234
-
* @return self The current Process instance
1235
-
*
1236
-
* @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);
* Returns whether sigchild compatibility mode is activated or not.
1249
-
*
1250
-
* @return bool
1251
-
*
1252
-
* @deprecated since version 3.3, to be removed in 4.0. Sigchild compatibility will always be enabled.
1253
-
*/
1254
-
publicfunctiongetEnhanceSigchildCompatibility()
1255
-
{
1256
-
@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);
1257
-
1258
-
return$this->enhanceSigchildCompatibility;
1259
-
}
1260
-
1261
-
/**
1262
-
* Activates sigchild compatibility mode.
1263
-
*
1264
-
* Sigchild compatibility mode is required to get the exit code and
1265
-
* determine the success of a process when PHP has been compiled with
1266
-
* the --enable-sigchild option
1267
-
*
1268
-
* @param bool $enhance
1269
-
*
1270
-
* @return self The current Process instance
1271
-
*
1272
-
* @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('Not inheriting environment variables is deprecated since Symfony 3.3 and will always happen in 4.0. Set "Process::inheritEnvironmentVariables()" to true instead.', E_USER_DEPRECATED);
1164
+
thrownewInvalidArgumentException('Not inheriting environment variables is not supported.');
1294
1165
}
1295
1166
1296
-
$this->inheritEnv = (bool) $inheritEnv;
1297
-
1298
1167
return$this;
1299
1168
}
1300
1169
1301
-
/**
1302
-
* Returns whether environment variables will be inherited or not.
1303
-
*
1304
-
* @return bool
1305
-
*
1306
-
* @deprecated since version 3.3, to be removed in 4.0. Environment variables will always be inherited.
1307
-
*/
1308
-
publicfunctionareEnvironmentVariablesInherited()
1309
-
{
1310
-
@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);
1311
-
1312
-
return$this->inheritEnv;
1313
-
}
1314
-
1315
1170
/**
1316
1171
* Performs a check between the timeout definition and the time the process started.
1317
1172
*
@@ -1429,7 +1284,7 @@ protected function updateStatus($blocking)
0 commit comments