Results 1 to 3 of 3

Thread: Methods and a variable are not recognized in a PHP file

  1. #1
    Join Date
    Nov 2023
    Beans
    4

    Methods and a variable are not recognized in a PHP file

    Good evening,

    In order to program a PHP application using the Model-View-Controller architecture on Ubuntu 22.04, I first learned to create a vendor folder. Inside this folder, there's another folder named composer, and within that, the ClassLoader class, two methods (acpu_fetch and apcu_add), and a variable ($hit) are not recognized. The php8.1-acpu package is properly installed. This package is listed when running php -m.
    Attached to this message, you will find the 'phpinfo.php' file.
    /etc/php/8.1/mods-available/apcu.ini contains extension=apcu.so
    Thanks for your help!
    Attached Images Attached Images
    Last edited by gerard-lerest-o; January 26th, 2024 at 08:51 PM.

  2. #2
    Join Date
    Nov 2023
    Beans
    4

    Re: Methods and a variable are not recognized in a PHP file

    I am testing this program with VSCodium and VSCode. When I disable the "PHP Intelephense" extension, the four errors disappear. Is there a setting to adjust to keep PHP Intelephense? How does PHP IntelliSense compare to PHP Intelephense?

  3. #3
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Methods and a variable are not recognized in a PHP file

    You need to ask these questions on a PHP mailing list. See: https://www.php.net/support
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •