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);
176
+
$this->options = $options + $this->options;
177
+
}
175
178
}
176
179
177
180
publicfunction__destruct()
@@ -274,24 +277,23 @@ public function start(callable $callback = null)
274
277
if ('\\' === DIRECTORY_SEPARATOR && !empty($this->options['bypass_shell']) && !$this->enhanceWindowsCompatibility) {
275
278
thrownewLogicException('The "bypass_shell" option must be false to inherit environment variables while enhanced Windows compatibility is off');
// last exit code is output on the fourth pipe and caught to work around --enable-sigchild
297
299
$descriptors[3] = array('pipe', 'w');
@@ -1148,9 +1150,13 @@ public function setInput($input)
1148
1150
* Gets the options for proc_open.
1149
1151
*
1150
1152
* @return array The current options
1153
+
*
1154
+
* @deprecated since version 3.3, to be removed in 4.0.
1151
1155
*/
1152
1156
publicfunctiongetOptions()
1153
1157
{
1158
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1159
+
1154
1160
return$this->options;
1155
1161
}
1156
1162
@@ -1160,9 +1166,13 @@ public function getOptions()
1160
1166
* @param array $options The new options
1161
1167
*
1162
1168
* @return self The current Process instance
1169
+
*
1170
+
* @deprecated since version 3.3, to be removed in 4.0.
1163
1171
*/
1164
1172
publicfunctionsetOptions(array$options)
1165
1173
{
1174
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
1175
+
1166
1176
$this->options = $options;
1167
1177
1168
1178
return$this;
@@ -1174,9 +1184,13 @@ public function setOptions(array $options)
1174
1184
* This is true by default.
1175
1185
*
1176
1186
* @return bool
1187
+
*
1188
+
* @deprecated since version 3.3, to be removed in 4.0.
1177
1189
*/
1178
1190
publicfunctiongetEnhanceWindowsCompatibility()
1179
1191
{
1192
+
@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);
1193
+
1180
1194
return$this->enhanceWindowsCompatibility;
1181
1195
}
1182
1196
@@ -1186,9 +1200,13 @@ public function getEnhanceWindowsCompatibility()
1186
1200
* @param bool $enhance
1187
1201
*
1188
1202
* @return self The current Process instance
1203
+
*
1204
+
* @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. Enhanced Windows compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
@@ -1198,9 +1216,13 @@ public function setEnhanceWindowsCompatibility($enhance)
1198
1216
* Returns whether sigchild compatibility mode is activated or not.
1199
1217
*
1200
1218
* @return bool
1219
+
*
1220
+
* @deprecated since version 3.3, to be removed in 4.0.
1201
1221
*/
1202
1222
publicfunctiongetEnhanceSigchildCompatibility()
1203
1223
{
1224
+
@trigger_error(sprintf('The %s method is deprecated since version 3.3 and will be removed in 4.0. SIGCHLD compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
1225
+
1204
1226
return$this->enhanceSigchildCompatibility;
1205
1227
}
1206
1228
@@ -1214,9 +1236,13 @@ public function getEnhanceSigchildCompatibility()
1214
1236
* @param bool $enhance
1215
1237
*
1216
1238
* @return self The current Process instance
1239
+
*
1240
+
* @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. SIGCHLD compatibility will always be enabled.', __METHOD__), E_USER_DEPRECATED);
$argument = preg_replace_callback("/!([^!=\n]++)!/", function ($m) {
56
+
@trigger_error(sprintf('Delayed variables are deprecated since Symfony 3.3 and will be left unresolved in 4.0. Resolve the %s variable before calling ProcessUtil::escapeArgument().', $m[0]), E_USER_DEPRECATED);
0 commit comments