Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.4 + phalcon = undefined symbol: php_strtoupper #2250

Open
3 tasks done
olaulau opened this issue Jan 16, 2025 · 1 comment
Open
3 tasks done

php8.4 + phalcon = undefined symbol: php_strtoupper #2250

olaulau opened this issue Jan 16, 2025 · 1 comment

Comments

@olaulau
Copy link

olaulau commented Jan 16, 2025

Frequently asked questions

  • I have read Frequently Asked Questions
  • I have looked at the list of the existing issues (including closed issues) and searched if my issue has been already reported
  • I have tried to resolve the issue myself and will describe what I did in clear and concise manner

Describe the bug
tried to install phalcon package for php 8.4, then I got this when running php8.4 :

PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/lib/php/20240924/phalcon.so (/usr/lib/php/20240924/phalcon.so: undefined symbol: php_strtoupper), /usr/lib/php/20240924/phalcon.so.so (/usr/lib/php/20240924/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

To Reproduce
sudo apt install php8.4-phalcon
php8.4 -v

Your understanding of what is happening
as phalcon works with other versions of php, maybe a typo ( php_strtoupper ) in a 8.4 specific code ?

What steps did you take to resolve issue yourself before reporting it here

  • checked if there was warning for phalcon on other PHP versions : no
  • tried to find if module was correctly present in expected path (/usr/lib/php/20240924/phalcon.so) : yes
  • tried to find if module conf file was correct : yes
  • tried on another platform (debian 12 netinst amd64) : same problem

Expected behavior
no PHP warning, and phalcon working

Distribution (please complete the following information):

  • OS: ubuntu 24.10
  • Architecture: amd64
  • Repository: Ubuntu PPA

Package(s) (please complete the following information):

php8.4-phalcon:
Installé : 5.8.0-6+ubuntu24.04.1+deb.sury.org+1
Candidat : 5.8.0-6+ubuntu24.04.1+deb.sury.org+1
Table de version :
*** 5.8.0-6+ubuntu24.04.1+deb.sury.org+1 500
500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 Packages
100 /var/lib/dpkg/status

Additional context
nothing special.

@jyyan
Copy link

jyyan commented Feb 2, 2025

i got the same issue in php8.4
but php8.3 can work!

  • OS: ubuntu 20.04
  • Architecture: amd64
  • Repository: Ubuntu PPA
# php & phalcon package version

$ apt-cache policy php8.4
php8.4:
  Installed: 8.4.3-1+ubuntu20.04.1+deb.sury.org+1
  Candidate: 8.4.3-1+ubuntu20.04.1+deb.sury.org+1
  Version table:
 *** 8.4.3-1+ubuntu20.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main i386 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy php8.4-phalcon 
php8.4-phalcon:
  Installed: 5.8.0-6+ubuntu20.04.1+deb.sury.org+1
  Candidate: 5.8.0-6+ubuntu20.04.1+deb.sury.org+1
  Version table:
 *** 5.8.0-6+ubuntu20.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy php8.3
php8.3:
  Installed: 8.3.16-1+ubuntu20.04.1+deb.sury.org+1
  Candidate: 8.3.16-1+ubuntu20.04.1+deb.sury.org+1
  Version table:
 *** 8.3.16-1+ubuntu20.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main i386 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy php8.3-phalcon
php8.3-phalcon:
  Installed: 5.8.0-6+ubuntu20.04.1+deb.sury.org+1
  Candidate: 5.8.0-6+ubuntu20.04.1+deb.sury.org+1
  Version table:
 *** 5.8.0-6+ubuntu20.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

phpinfo

$ php8.4 -i | grep phalcon
PHP Warning:  PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/lib/php/20240924/phalcon.so (/usr/lib/php/20240924/phalcon.so: undefined symbol: php_strtoupper), /usr/lib/php/20240924/phalcon.so.so (/usr/lib/php/20240924/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
52:/etc/php/8.4/cli/conf.d/35-phalcon.ini

# tried to find if module was correctly present in expected path 
$ ls -l /usr/lib/php/20240924/phalcon*
-rw-r--r-- 1 root root 7518472 Oct  7 17:07 /usr/lib/php/20240924/phalcon.so

$ php8.3 -i | grep phalcon
52:/etc/php/8.3/cli/conf.d/35-phalcon.ini
522:phalcon
525:Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance.
526:phalcon => enabled
527:Author => Phalcon Team and contributors
533:phalcon.db.escape_identifiers => On => On
534:phalcon.db.force_casting => Off => Off
535:phalcon.form.strict_entity_property_check => Off => Off
536:phalcon.orm.case_insensitive_column_map => Off => Off
537:phalcon.orm.cast_last_insert_id_to_int => Off => Off
538:phalcon.orm.cast_on_hydrate => Off => Off
539:phalcon.orm.column_renaming => On => On
540:phalcon.orm.disable_assign_setters => Off => Off
541:phalcon.orm.dynamic_update => On => On
542:phalcon.orm.enable_implicit_joins => On => On
543:phalcon.orm.enable_literals => On => On
544:phalcon.orm.events => On => On
545:phalcon.orm.exception_on_failed_metadata_save => On => On
546:phalcon.orm.exception_on_failed_save => Off => Off
547:phalcon.orm.ignore_unknown_columns => Off => Off
548:phalcon.orm.late_state_binding => Off => Off
549:phalcon.orm.not_null_validations => On => On
550:phalcon.orm.resultset_prefetch_records => 0 => 0
551:phalcon.orm.update_snapshot_on_save => On => On
552:phalcon.orm.virtual_foreign_keys => On => On
553:phalcon.warning.enable => On => On

EDIT:

just find out
#remicollet/remirepo#281
#phalcon/cphalcon#16671
"Blocked by #zephir-lang/zephir#2440 "

the PR "Add support for PHP8.4" #phalcon/cphalcon#16688
still in Draft status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants