[php-src] Issue #13300: String parsed as resource
| From: | AntoineMarques | Date: | Thu, 01 Feb 2024 10:17:39 +0000 |
| Subject: | [php-src] Issue #13300: String parsed as resource | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246383@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13300
Author: AntoineMarques
### Description
The following code:
```php
<?php
$foo = 'https://www.linkedin.com/in/thomaspetitcopy';
```
Resulted in this output:
```
Is somehow recognized as a resource. Maybe because ends with copy. If i remove the trailing
'y' nothing bad happens.
Found nothing in the documentation stating such behaviour is intended
```
But I expected this output instead:
```
Just a regular string containing a URL
```

### PHP Version
PHP 8.3.1
### Operating System
_No response_