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

  • SEARCH
  • Home
  • 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 6066715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:31:49+00:00 2026-05-23T09:31:49+00:00

While following the Practical Symfony course, I have run in a strange error. I

  • 0

While following the “Practical Symfony” course, I have run in a strange error.

I have installed a Debian Squeeze in a VMWare 6.5.5 machine. It comes with PHP 5.3.3 and I am using Symfony 1.4. The source files are on the host, I am accessing them using the shared folder feature (vmhgfs mount).

Now, when I try the following commands, I get an error:

php symfony doctrine:build --model    
php symfony doctrine:build --sql

Error:

PHP Parse error:  syntax error, unexpected ')' in /var/www/appli/lib/model/doctrine/base/BaseJobeetJob.class.php on line 144

What is funny is that when I :
– do the same thing without the shared folders (e.g. on a ext3 partition), it works,
– convert the VM to VirtualBox and do the same thing on a shared folder, it works,
– downgrade the PHP to 5.2.6 (from lenny), it works.

I remember having the same kind of issue some time ago with the PHP code generated by Smarty. As it was automatically generated PHP and could be regenerated at will, I had it generated in a local direcorty. But I do not think this is applicable to Doctrine generated files.

Does anyone have any clue of what is happening and how I could fix it ?

EDIT: here is the code around line 144:

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('JobeetCategory', array(
             'local' => 'category_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

        $timestampable0 = new Doctrine_Template_Timestampable();
        $this->actAs($timestampable0);
    }
} // Line 144 here.

It is actually the end of the file…

EDIT #2: to make it clear I have tested the following combinations in order to narrow down the issue:

  • VM software : VMWare Workstation
    6.5.5
    / VirtualBox 4.0.8
  • PHP version: 5.3.3 / 5.2.6,
  • Mount type : vmhgfs (or vboxsf with VirtualBox) / ext4 (local)
    / cifs (aka Windows share).

In every case I am using the very same source files (but for ext4 because I had no other choice than to copy them). I have a failure when combining the bold items. If I change any one of them, everything goes fine. I also tried to use the open-vm-modules in place of the provided vmware tools and to build a Debian installation from scratch instead of using my own automated script but neither has changed anything.

  • 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-23T09:31:49+00:00Added an answer on May 23, 2026 at 9:31 am

    This seems to be a bug in vmhgfs – I have the same issue working with Drupal PHP code. It also seems to only happen when the files are added to the host from the guest, for example using git to clone a repository in the Linux VM.

    There are three workarounds:

    1. Copy the files into their desired location, then disable shared folders in VMWare settings for the virtual machine, refresh the web page so you get ‘Not found’, then re-enable shared folders.

    2. On the host machine, run the following command which updates the file access / modified timestamps for every file, thus causing the VMWare driver to reload the file, fixing the issue:

      find . -exec touch {} \;
      
    3. Open the affected file from the host machine, modify it, and save it back. This may be useful if you’re on a Windows machine.

    The errors range from PHP Parse errors to others, normally flagging the last line of the file.

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

Sidebar

Related Questions

I have the following: while($myRow = odbc_fetch_array( $result )){ <--lots of rows $thisResult['name'] =
while executing the following query, i get an error that there's an error in
I get the following error while building OpenCV on OS X 10.5 (intel): ld:
I am getting the following error while compiling a sample program in Qt 4.5
I am getting the following error while running my MVC application, which uses the
I am getting the following error while sending mail by click of a button
When I run the following php code the while loop only runs once even
Why doesn't the following work? (apply and (list #t #t #f)) While the following
while using the following constructor $this->pdo = new PDO ($this->source, $this->username, $this->password); if I
Consider the following code: while(true) { someFunction(); Thread.sleep(1000); } What I want is that,

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.