Download src/php/php-src/ext/odbc/tests/bug80152.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug80152.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/bug80152.phpt
-
curl -L -o bug80152.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug80152.phpt
618 Bytes
| --TEST-- | |
| Bug #80152 (odbc_execute() moves internal pointer of $params) | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn,"CREATE TABLE bug80152 (id INT, name CHAR(24))"); | |
| $stmt = odbc_prepare($conn,"INSERT INTO bug80152 (id, name) VALUES (?, ?)"); | |
| $params = [1, "John", "Lim"]; | |
| var_dump(key($params)); | |
| odbc_execute($stmt, $params); | |
| var_dump(key($params)); | |
| --CLEAN-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, "DROP TABLE bug80152"); | |
| --EXPECT-- | |
| int(0) | |
| int(0) | |