[php-src] Issue #12137: highlight_string err

From: Date: Wed, 06 Sep 2023 09:34:24 +0000
Subject: [php-src] Issue #12137: highlight_string err
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245341@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12137
Author: 104979058

### Description

The following code:

```php
<?php
highlight_string('<?php phpinfo(); ?>');
```

Resulted in this output:
```
<code style="color: #000000"><span style="color:
#0000BB">&lt;?php phpinfo</span><span style="color: #007700">();
</span><span style="color: #0000BB">?&gt;</span></code>
```

But I expected this output instead:
```
<pre><code style="color: #000000"><span style="color:
#0000BB">&lt;?php phpinfo</span><span style="color: #007700">();
</span><span style="color:
#0000BB">?&gt;</span></code></pre>
```

<pre>.....</pre>  ??



### PHP Version

PHP:8.3.0

### Operating System

windows


Thread (1 message)

  • 104979058
« previous php.bugs (#245341) next »