Php require_once "FILENAME", causing a failed opening "

In .php, I have this:

Line 64  require_once 'Zend/View/Stream.php'

in the apache error log I see: [error] [client 127.0.0.1] PHP Fatal error: require_once (): Opening error required '' (include_path = '.........

I walk and debug four hours. Maybe this is familiar to someone. I do not understand how a line of code

require_once 'Zend/View/Stream.php'

cause

Failed opening required ''
+4
source share
1 answer

EDIT According to https://bugs.php.net/bug.php?id=62398 , an error occurred in some earlier versions of the APC extension with PHP 5.4, which replaced the file transferred requirewith an empty string.

@conceptdeluxe, PHP 5.4.30 APC 3.1.13. APC apc.stat=1 ( php.ini) PHP .

, include_path, , http://php.net/manual/fr/function.set-include-path.php

, , Zend.

, Zend /var/www/my_project/vendor/Zend, Zend Stream:

set_include_path(get_include_path() . PATH_SEPARATOR . '/var/www/my_project/vendor');

PHP include_path :

# assuming vim is available as text editor 
# and PHP configuration file would be available for editing
vim /etc/php.ini

# append /var/www/my_project/vendor to the value of entry
include_path='.:/var/www/my_project/vendor'
+1

All Articles