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

From: Date: Wed, 03 Apr 2013 01:47:16 +0000
Subject: Bug #64566 [Opn]: Not include file specified in 'auto_prepend_file' in router
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178251@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:         laruence@php.net
 Reported by:        wcode404 at gmail dot com
 Summary:            Not include file specified in 'auto_prepend_file' in
                     router
 Status:             Open
 Type:               Bug
 Package:            Built-in web server
 Operating System:   *
 PHP Version:        5.4.13
-Assigned To:        
+Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

assign to myself


Previous Comments:
------------------------------------------------------------------------
[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 (#178251) next »