php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63345 build fail: E_DEPRECATED is undefined in PHP-5.2
Submitted: 2012-10-24 05:14 UTC Modified: 2017-01-10 08:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: shubo83 at vip dot qq dot com Assigned:
Status: Suspended Package: gearman (PECL)
PHP Version: 5.2 OS: centos 5.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shubo83 at vip dot qq dot com
New email:
PHP Version: OS:

 

 [2012-10-24 05:14 UTC] shubo83 at vip dot qq dot com
Description:
------------
http://pecl.php.net/package/gearman/1.1.0页面中gearman 1.1.0安装包描述信息说只要

Dependencies for release 1.1.0
PHP Version: PHP version 6.0.0 or older
PHP Version: PHP 5.1.0 or newer
PEAR Package: PEAR Installer 1.4.0b1 or newer

我用php5.2.17安装的时候发现出现E_DEPRECATED未定义错误
我查了php5.3的更新列表,这个错误等级变量是5.3更新的所以5.2的php装不上这个扩展
有两种办法解决这个问题
1. 升级php到5.3版本
2.替换php_gearman.c中的E_DEPRECATED为其他错误等级变量(有两处),比如E_ERROR

Test script:
---------------
以上在centos5.8 php5.2.17环境中测试通过

Expected result:
----------------
1

Actual result:
--------------
1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-24 06:31 UTC] laruence@php.net
-Summary: 用php5.2.17安装的时候发现出现E_DEPRECATED未定义错误 +Summary: E_DEPRECATED is undefined in PHP-5.2
 [2012-10-24 06:34 UTC] hradtke@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: hradtke
 [2012-10-24 06:39 UTC] laruence@php.net
-Summary: E_DEPRECATED is undefined in PHP-5.2 +Summary: build fail: E_DEPRECATED is undefined in PHP-5.2 -PHP Version: Irrelevant +PHP Version: 5.2
 [2012-10-24 06:39 UTC] laruence@php.net
change summary
 [2017-01-10 08:22 UTC] kalle@php.net
-Status: Assigned +Status: Suspended -Assigned To: hradtke +Assigned To:
 [2017-01-10 08:22 UTC] kalle@php.net
The gearman extension have not had much activity in the past few years, so I'm taking the safe bet that this is no longer under active development (as I don't consider the typo fixes on the github repo an active development), besides that it also targets unsupported PHP versions. Please unsuspend this report in case it begins to blossom with life once more
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 00:03:36 2021 UTC