Jump to content
The Uniform Server Community

eAccelerator not playing nice with Doctrine2


costinb
 Share

Recommended Posts

Hey,

 

Doctrine2 (www.doctrine-project.org), a nice PHP ORM, uses phpdoc reflection for determining table metadata.

When working against cached versions of the entities classes, the scripts fail because I believe their phpdoc comments are stripped when the class is cached.

 

I've read there is a compile time switch that would prevent eaccelerator from stripping those comments.

It could be useful now, when more and more projects start using this type of reflection.

 

Any chance this could make it into a next version or at least a plugin?

Also, the shared memory caching of eAccelerator doesn't seem enabled (eaccelerator_get function undefined). This would force us using a different caching library for metadata - again, there should be a compile time switch for this.

 

Thank you!

Costin

Link to comment
Share on other sites

Just realised why my xdebug sessions were shutting down apache when using watches.

Guess what: eaccelerator...

Disabling it made all problems go away.

Just installed a windows version of memcached - perfectly functional for caching some query/metadata info.

 

I think that should be a more valuable addition to Uniserver than eaccelerator, at least until that's more stable.

 

Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...