xref: /PHP-8.4/sapi/phpdbg/tests/gh12962.phpt (revision cd483f13)
1--TEST--
2GH-12962 (Double free of init_file in phpdbg_prompt.c)
3--SKIPIF--
4<?php
5if (!getenv('TEST_PHPDBG_EXECUTABLE')) die("SKIP: No TEST_PHPDBG_EXECUTABLE specified");
6?>
7--FILE--
8<?php
9putenv('PHP_INI_SCAN_DIR='.__DIR__."/gh12962");
10passthru(getenv('TEST_PHPDBG_EXECUTABLE') . " -q");
11?>
12--EXPECT--
13Executed .phpdbginit
14