Bug reported, see http://pecl.php.net/bugs/bug.php?id=18154
On 08/17/2010 01:13 PM, Colin Guthrie wrote:
I don't know the internals of APC but that smells like a bug to me.
Can you post the bug number here if you report one?
Cheers
Col
--
PHP General Mailing List
'Twas brillig, and Mark Hunting at 17/08/10 09:08 did gyre and gimble:
I now notice that when I replace include_once with include the open()
call disappears. That's very nice, but why does include_once need to
open the file, even when apc.include_once_override is enabled? Is this a
bug?
I
include (extended_methods_stuff.php);
}
I know that I can probably extend this class to add the extra
functionality however the other generated classes rely on the name of this
class so I cannot just extend this class and it's name cannot change.
Is there any way to have an include prior to the
I really ought to check my code before posting... but you get the idea :)
?php
class generatedFoo {
public function __autoload($class) {
include /path/to/class/$class.php;
}
// other stuff
}
?
http://www.php.net/zend-engine-2.php
--
PHP General Mailing List (http://www.php.net/)
To
Allex [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
What's the syntax for including/requiring files located in directories
different than the root directory? Especially files from different sub
directories under the root? Going down (classes/globals.php) is ok,
but going
try this:
if(!@include('file.php')) {
header(HTTP/1.0 404 Not Found);
}
change header() into whatever you want to include at it's place.
Careful with this though, make sure that the files script is trying to
include do never get below a certain directory. Otherwise I can dispay
what everyone is trying to say is that it goes automatically..
ie
.
test.php
--
$blah=10;
include whatever.php;
whatever.php
-
echo The value of blah is: {$blah};
It just keeps the variable since it's global..
When ur using a function. It
7 matches
Mail list logo