[php-src] Issue #20122: ::getColumnMeta() for JSON-column in MySQL
| From: | lon9man | Date: | Fri, 10 Oct 2025 12:26:58 +0000 |
| Subject: | [php-src] Issue #20122: ::getColumnMeta() for JSON-column in MySQL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-251039@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20122
Author: lon9man
### Description
### The following code:
```php
<?php
$metadata = $pdoStatement->getColumnMeta($i);
```
### Resulted in this output:
<img width="384" height="238" alt="Image" src="https://github.com/user-attachments/assets/86fc3aac-2c0f-4c3d-b04f-1f716eff9ca8"
/>
### But I expected this output instead:
expect to see something possible to use inside PHP.
6 years old bug here: https://bugs.php.net/bug.php?id=78596
how about fix?
### PHP Version
```plain
PHP 8.0.30 (cli) (built: Nov 21 2023 16:17:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans
```
### Operating System
Debian GNU/Linux 11 (bullseye)