Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 975301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:33:53+00:00 2026-05-16T03:33:53+00:00

I just realised that a bit of PHP doesn’t execute correctly on one server,

  • 0

I just realised that a bit of PHP doesn’t execute correctly on one server, but it does on another.

They’re both running Ubuntu 10.04 with PHP PHP 5.3.2 (PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:03:45))

I’m testing using:

$f = function() {};

var_dump($f);
die();

On the server that works, the result is:

object(Closure)#1 (0) { }

On the one that doesn’t, the result is:

UNKNOWN:0

What am I missing?

[edit]

There seems to be an issue with having 2 closures in the same file:

<?php
$f = function() {};
$f2 = function() {};

var_dump($f);
var_dump($f2);
die();

Outputs:

UNKNOWN:0
object(Closure)#1 (0) {}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:33:53+00:00Added an answer on May 16, 2026 at 3:33 am

    After some more Googling combined with ircmaxell’s tip at phpinfo, I got a hint at eaccelerator.

    The server that ran the code correctly was running eaccelerator 0.9.6.1, the one that didn’t work was using 0.9.6.

    Compiled the new version from source and it fixed my issue.

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 536k
  • Answers 536k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer there is no good answer for that problem. only an… May 17, 2026 at 1:24 am
  • Editorial Team
    Editorial Team added an answer Never used it myself, but take a look at TelephonyManager->getNetworkOperatorName().… May 17, 2026 at 1:24 am
  • Editorial Team
    Editorial Team added an answer An instance of ThreadDeath is thrown in the victim thread… May 17, 2026 at 1:24 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I just built a website and have realised that I need to have a
I just realised there is a shell: URI, but every search engine seems to
So this is pretty basic, I know! Sorry, just one of those days. I've
I've been programming badly for quite a while and I only really just realised.
I asked a similar question the other day but it seems no one was
OK - I'll get straight to the point - here's the PHP code in
I have a complex input form within a PHP based web application. To structure
I've got a minor problem with a database admin page that I use to
I am using PHP in eclipse. It works ok, I can connect to my
I have a free application that has a number of paid-for upgrade applications you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.