php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63511 PECL extension fails with an error
Submitted: 2012-11-14 11:31 UTC Modified: 2012-11-15 09:07 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: simplyadilb at gmail dot com Assigned: ab (profile)
Status: Closed Package: Trader (PECL)
PHP Version: Irrelevant OS: Ubuntu 11.10 x64
Private report: No CVE-ID: None
 [2012-11-14 11:31 UTC] simplyadilb at gmail dot com
Description:
------------
Installation fails with an error

sudo pecl install trader-beta

..

downloading trader-0.3.0.tgz ...
Starting to download trader-0.3.0.tgz (295,748 bytes)
..
..

/tmp/pear/temp/trader/trader.c:1225:2: error: 'PHP_FE_END' undeclared here (not 
in a function)
make: *** [trader.lo] Error 1


Test script:
---------------
sudo pecl install trader-beta


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 12:42 UTC] pajoye@php.net
-Package: Compile Failure +Package: Trader
 [2012-11-14 14:31 UTC] johannes@php.net
PHP_FE_END was added in PHP 5.3. You are most likely  using PHP 5.2 (or older)
 [2012-11-14 14:33 UTC] simplyadilb at gmail dot com
Nope. Its php 5.3 alright.


PHP 5.3.6-13ubuntu3.9 with Suhosin-Patch (cli) (built: Sep 12 2012 19:00:27) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
 [2012-11-14 18:16 UTC] ab@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: ab
 [2012-11-14 18:16 UTC] ab@php.net
That was fixed in bug #62832, yet in trunk. PHP_FE_END was added somewhere in the middle of PHP 5.3 :) . Use trunk for now or just upgrade PHP.

What looks strange to me is that 0.3.0 is stable so i just wonder how you could get it with trader-beta.
 [2012-11-15 08:34 UTC] simplyadilb at gmail dot com
I upgraded PHP via the dotdeb reps (http://www.dotdeb.org/instructions/) to PHP 
5.3.18 . It still breaks.

Also, with "pecl install trader" i was getting v0.2 earlier, but now i'm getting 
0.3
 [2012-11-15 08:34 UTC] simplyadilb at gmail dot com
-Status: Feedback +Status: Assigned
 [2012-11-15 08:54 UTC] ab@php.net
Seems like you had the beta state as default. Anyway, starting with 5.3.10 it will compile for sure. If you look into the  bug #62832 - there it was compiling with 5.3.15.

What is exactly the break right now? Could you please reset the pecl cache and try again?
 [2012-11-15 08:54 UTC] simplyadilb at gmail dot com
I had to manually patch v0.3 based on the instructions here 
https://bugs.php.net/bug.php?id=62832 . Works now.
 [2012-11-15 08:59 UTC] simplyadilb at gmail dot com
> What is exactly the break right now? Could you please reset the pecl cache and 
try again?

Same error, even after "pecl clear-cache"
 [2012-11-15 09:07 UTC] ab@php.net
Ok, strange. May be dotdeb sources differ somehow, didn't look into them though. Looks like the trunk has to be released then as a lot of people use dotdeb. Nevertheless that's only the fix after the last release.

Thanks for reporting :)
 [2012-11-15 09:07 UTC] ab@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC