php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63735 Package cannot be installed because pval has been removed since php 5.4
Submitted: 2012-12-10 11:50 UTC Modified: 2012-12-10 16:09 UTC
From: alexander at kachkaev dot ru Assigned: andrey (profile)
Status: Closed Package: stats (PECL)
PHP Version: 5.4.9 OS: any
Private report: No CVE-ID: None
 [2012-12-10 11:50 UTC] alexander at kachkaev dot ru
Description:
------------
An attempt to install the package on php 5.4 results an error saying

statistics.c:165:2: error: unknown type name 'pval'; did you mean 'zval'?
        pval result;
        ^~~~

This happens because type pval has been completely removed from php since 5.4. 

As a temporary workaround, it is required to manually replace pval with zval in statistics.c, for more details see http://allabouthobby.blogspot.co.uk/2012/09/phpize-error-unknown-type-name-pval.html

Test script:
---------------
pecl install stats

Expected result:
----------------
Package installed successfully 

Actual result:
--------------
statistics.c:165:2: error: unknown type name 'pval'; did you mean 'zval'?
        pval result;
        ^~~~

...

8 warnings and 7 errors generated.
make: *** [statistics.lo] Error 1
ERROR: `make' failed



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-10 11:53 UTC] alexander at kachkaev dot ru
-: reg at kachkaev dot ru +: alexander at kachkaev dot ru
 [2012-12-10 11:53 UTC] alexander at kachkaev dot ru
 
 [2012-12-10 16:09 UTC] andrey@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Hi, I uploaded a new release to pecl, which incorporates fixed code that should work with 5.4+
 [2012-12-10 16:09 UTC] andrey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrey
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC