Skip to content

Commit 7c38d50

Browse files
committed
Diagnostic: drop [e] UDF pollution to reproduce FROM_BASE64 cleanly
1 parent 3aea2e7 commit 7c38d50

1 file changed

Lines changed: 3 additions & 25 deletions

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -756,31 +756,9 @@ jobs:
756756
$log('[d] EXC ' . $e->getMessage());
757757
}
758758
759-
// 4) Register 50 and CALL each — not just registration. Turso's
760-
// pre-generated bridges used to be capped at 32 slots; we
761-
// expanded to 64, but need to verify slots 32+ actually dispatch.
762-
try {
763-
for ($i = 0; $i < 50; $i++) {
764-
$pdo->createFunction("fn_{$i}", function () use ($i) { return "v$i"; });
765-
}
766-
$log('[e] registered 50 UDFs ok');
767-
foreach ([0, 31, 32, 33, 49] as $i) {
768-
$r = $pdo->query("SELECT fn_{$i}() AS v")->fetch(PDO::FETCH_ASSOC);
769-
$log("[e.call {$i}] " . json_encode($r));
770-
}
771-
// Test case-insensitive lookup: uppercase call on lowercase registration.
772-
try {
773-
$r = $pdo->query("SELECT FN_32() AS v")->fetch(PDO::FETCH_ASSOC);
774-
$log('[e.upper 32] ' . json_encode($r));
775-
} catch (\Throwable $ex) {
776-
$log('[e.upper 32] EXC: ' . $ex->getMessage());
777-
}
778-
} catch (\Throwable $e) {
779-
$log('[e] EXC: ' . $e->getMessage());
780-
}
781-
782-
// 5) Reproduce the actual testFromBase64Function setup exactly: run
783-
// setUp-style driver construction and then call FROM_BASE64.
759+
// 4) Reproduce testFromBase64Function in a clean Turso FUNC_SLOTS
760+
// state (skipping earlier [e] UDF registrations which would
761+
// consume slots 0..49 globally in the same process).
784762
try {
785763
require getcwd() . '/tests/bootstrap.php';
786764
$pdo2 = new PDO\SQLite('sqlite::memory:');

0 commit comments

Comments
 (0)