Symfony doesn't detect eAccelerator

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Symfony doesn't detect eAccelerator

Postby supertoto » 08. May 2009 22:02

Hi,

In order to use Symfony framework, I put eaccelerator to ON in my php.ini like it's write on ApacheFriends, it works in my phpinfo(),.
However, when I launch the Symfony checking configuration script, it writes this : "A PHP accelerator is installed: FAILED"

I've observed this script and I've seen (eg : code) :
1) Script verifies if the value about eaccelerator in configuration file is ok
2) Script verifies if the following function exists : "eaccelerator_put"

Code: Select all
$accelerator =
  (function_exists('apc_store') && ini_get('apc.enabled'))
  ||
  function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
  ||
  function_exists('xcache_set')
;


For 1) I've tested by myself with following command line : /opt/lampp/bin/php -v => it seems ok.
Code: Select all
PHP 5.2.5 (cli) (built: Jan 23 2008 14:13:03)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator


For 2)
I've searched eaccelerator_put function with grep in /opt/lampp/ (eg : code) and I find 3 lines are ok.
Code: Select all
Command :
grep -r "eaccelerator_put" *

Result :
a) Binary file lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so matches
b) Binary file lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so matches
c) Binary file tmp/eaccelerator/d/1/eaccelerator-25992.098881 matches


In my php.ini the term "extension_dir" is write with ";" before but in my php info it's ok, I have the following line :
extension_dir /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613

My question is :
Is-it normal eaccelerator_put function doesn't return true with function_exists('eaccelerator_put') for the Symfony test ?
How should I do for the checking script works on Xampp linux ?

Thanks a lot for your response.
supertoto
 
Posts: 4
Joined: 07. May 2009 19:35

Re: Symfony doesn't detect eAccelerator

Postby Wiedmann » 08. May 2009 22:26

Is-it normal eaccelerator_put function doesn't return true with function_exists('eaccelerator_put') for the Symfony test ?

I can't help you with Symfony (and how this script works...).

Back to XAMPP:
What's the output from this script:
Code: Select all
<?php
var_dump(ini_get('eaccelerator.enable'), function_exists('eaccelerator_put'));
?>

:?:
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Symfony doesn't detect eAccelerator

Postby supertoto » 10. May 2009 19:44

Thank you for your help.

For my problem we don't have really need to know Symfony.

I've tested your code :
Here is the result of your purpose :
Code: Select all
string(1) "1"
bool(false)


We can see that eaccelerator_put doesn't exist.
Here is my problem.
Could you tested this same code on your computer if your eaccelerator is open ?

Thank you.
supertoto
 
Posts: 4
Joined: 07. May 2009 19:35


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 63 guests