php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76597 phpdbg does not support auto_*_file ini settings
Submitted: 2018-07-09 02:34 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: kevin dot abel dot 0 at gmail dot com Assigned:
Status: Open Package: phpdbg
PHP Version: 7.1.19 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-07-09 02:34 UTC] kevin dot abel dot 0 at gmail dot com
Description:
------------
phpdbg does not support the auto_prepend_file or auto_append_file ini settings.

Test script:
---------------
--prepend--
prepend

--append--
append

--auto.php--
<?php
echo "done\n";

$ php -dauto_prepend_file=prepend auto.php
$ phpdbg -qrrdauto_prepend_file=prepend auto.php
$ php -dauto_append_file=append auto.php
$ phpdbg -qrrdauto_append_file=append auto.php

Expected result:
----------------
$ php -dauto_prepend_file=prepend auto.php
prepend
done
$ phpdbg -qrrdauto_prepend_file=prepend auto.php
prepend
done
$ php -dauto_append_file=append auto.php
done
append
$ phpdbg -qrrdauto_append_file=append auto.php
done
append

Actual result:
--------------
$ php -dauto_prepend_file=prepend auto.php
prepend
done
$ phpdbg -qrrdauto_prepend_file=prepend auto.php
done
$ php -dauto_append_file=append auto.php
done
append
$ phpdbg -qrrdauto_append_file=append auto.php
done

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 28 06:01:23 2020 UTC