Results 1 to 6 of 6

Thread: Leap 15 PHP7 Zend

  1. #1

    Default Leap 15 PHP7 Zend

    I've just discovered something which is confusing me. I recently updated to Leap 15, which includes PHP7. According to phpinfo the Zend Engine is 3.2.0 but when I ran into a problem and started looking at the Zend files in /usr/share/php7/Zend and also at yast, it appears that the Zend version is 1.12.20. So why is phpinfo saying something different and why is an old, and apparently incompatible, version of Zend Framework being installed?

  2. #2

    Default Re: Leap 15 PHP7 Zend

    Quote Originally Posted by davidlwilcox View Post
    I've just discovered something which is confusing me. I recently updated to Leap 15, which includes PHP7. According to phpinfo the Zend Engine is 3.2.0 but when I ran into a problem and started looking at the Zend files in /usr/share/php7/Zend and also at yast, it appears that the Zend version is 1.12.20. So why is phpinfo saying something different and why is an old, and apparently incompatible, version of Zend Framework being installed?
    Zend Engine is not Zend framework. Zend engine is core part of PHP written in C/C++ and every PHP application use it. Zend framework is similar to Symfony/Nette/Laravel/Cake/... framework, it is written in PHP, only some applications use it and Zend framework is not in standard openSUSE repositories. So it is probably some package from some your old installation from external repository.

  3. #3

    Default Re: Leap 15 PHP7 Zend

    I'm not exactly sure of the sequence of events but what I do know is that php7-ZendFramework comes from repository http://download.opensuse.org/reposit...SUSE_Leap_15.0. Are you saying that this is not an official OpenSUSE repository? If it is an official repository then why does it have a framework referred to as php7 when the version it contains is old and not compatible with php7.

  4. #4

    Default Re: Leap 15 PHP7 Zend

    Quote Originally Posted by davidlwilcox View Post
    I'm not exactly sure of the sequence of events but what I do know is that php7-ZendFramework comes from repository http://download.opensuse.org/reposit...SUSE_Leap_15.0. Are you saying that this is not an official OpenSUSE repository? If it is an official repository then why does it have a framework referred to as php7 when the version it contains is old and not compatible with php7.
    It is marked as experimental repository according to https://software.opensuse.org/packag...-ZendFramework . Official Zend Framework page says that this version is already two years without support: https://framework.zend.com/blog/2016...-Released.html . If you don't need it as dependency for other package, but you need it for some yours php project, I recommend download a new version via composer package manager: https://framework.zend.com/downloads (only framework, ignore the commercial for Zend Server) , https://software.opensuse.org/package/php-composer

  5. #5
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Leap 15 PHP7 Zend

    Quote Originally Posted by davidlwilcox View Post
    why does it have a framework referred to as php7 when the version it contains is old and not compatible with php7.
    What makes you think that the Zend Framework v1.12.20 is not compatible with the PHP7 distributed with Leap-15.0?
    The 3.2.0 that you see in the phpinfo.php page refers to the engine that was used to produce the page script.
    Are you sure that you actually need the Zend Framework?
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  6. #6

    Default Re: Leap 15 PHP7 Zend

    Two specific problems I found when trying to run webcaula. In Cache/Backend.php you get a warning the the each function is deprecated and in Cache/Backend.php you get a warning the count parameter must be an object that can be counter. For the former the solution is to change it to a foreach and the latter already has the solution in the script but it's in the wrong place.

    Those are the only things I've found and specifically because I use webacula. Mind you I also had to make some other changes to make it work and I don't know whether they would have been necessary if I was using the latest Zend.

    On the point about the package being marked experimental, I will admit that I hadn't noticed. However I'm still not sure that it makes sense to provide any package which is known to be out of date, especially when this version has changed to a later version of PHP. Likely to be very confusing for non-technical people.

Tags for this Thread

Posting Permissions

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