[php-src] Issue #11287: Bug cPanel (WHM) PHP (8.1.19) $_SERVER['argv'] is set in non-cli mode.

From: Date: Sun, 21 May 2023 16:00:14 +0000
Subject: [php-src] Issue #11287: Bug cPanel (WHM) PHP (8.1.19) $_SERVER['argv'] is set in non-cli mode.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244497@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11287
Author: lianglee

### Description

The following code:

website.com/test.php?var=1

```php
<?php
print_r($_SERVER['argv']);
```

Resulted in this output:

```
Array ( [0] => var=1 )

```

But I expected this output instead:
```
NULL

```


![image](https://github.com/php/php-src/assets/805066/c4d07b9c-6909-4ef3-90e2-97a4257a67e0)

![image](https://github.com/php/php-src/assets/805066/c6e8be54-72cf-4a0c-923a-97c967319883)



### PHP Version

8.1.19

### Operating System

_No response_


Thread (1 message)

  • lianglee
« previous php.bugs (#244497) next »