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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC