php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64566 Not include file specified in 'auto_prepend_file' in router
Submitted: 2013-04-02 14:31 UTC Modified: 2015-04-29 13:45 UTC
Votes:4
Avg. Score:3.5 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: wcode404 at gmail dot com Assigned: laruence (profile)
Status: Assigned Package: Built-in web server
PHP Version: 5.4.13 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wcode404 at gmail dot com
New email:
PHP Version: OS:

 

 [2013-04-02 14:31 UTC] wcode404 at gmail dot com
Description:
------------
Not include file specified in 'auto_prepend_file' in router.

Test script:
---------------
# p.php
<?php
function p() {
  // do something
}

# php.ini
...
auto_prepend_file = /path/to/p.php

# router.php
<?php
var_dump(function_exists('p'));

call in cmd
# php -S localhost:8000 router.php

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-02 14:33 UTC] wcode404 at gmail dot com
add summary
 [2013-04-02 14:33 UTC] wcode404 at gmail dot com
-Summary: * +Summary: Not include file specified in 'auto_prepend_file' in router
 [2013-04-03 01:47 UTC] laruence@php.net
assign to myself
 [2013-04-03 01:47 UTC] laruence@php.net
-Assigned To: +Assigned To: laruence
 [2015-04-10 05:37 UTC] nicolas dot grekas+php at gmail dot com
The same is true for auto_append_file
 [2015-04-29 13:45 UTC] jpauli@php.net
Hello.

You may try this fix (against 5.5) https://github.com/jpauli/php-src/tree/fix-64566
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC