Bug #64566 [Asn]: Not include file specified in 'auto_prepend_file' in router

From: Date: Wed, 29 Apr 2015 13:45:53 +0000
Subject: Bug #64566 [Asn]: Not include file specified in 'auto_prepend_file' in router
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192400@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64566&edit=1

 ID:                 64566
 Updated by:         jpauli@php.net
 Reported by:        wcode404 at gmail dot com
 Summary:            Not include file specified in 'auto_prepend_file' in
                     router
 Status:             Assigned
 Type:               Bug
 Package:            Built-in web server
 Operating System:   *
 PHP Version:        5.4.13
 Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

Hello.

You may try this fix (against 5.5) https://github.com/jpauli/php-src/tree/fix-64566


Previous Comments:
------------------------------------------------------------------------
[2015-04-10 05:37:49] nicolas dot grekas+php at gmail dot com

The same is true for auto_append_file

------------------------------------------------------------------------
[2013-04-03 01:47:16] laruence@php.net

assign to myself

------------------------------------------------------------------------
[2013-04-02 14:33:51] wcode404 at gmail dot com

add summary

------------------------------------------------------------------------
[2013-04-02 14:31:01] 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)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=64566&edit=1


Thread (6 messages)

« previous php.bugs (#192400) next »