|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59123 Do not use reserved keywords as method names
Submitted: 2010-03-17 00:39 UTC Modified: 2011-05-15 10:53 UTC
From: sb at sebastian-bergmann dot de Assigned:
Status: Duplicate Package: gearman (PECL)
PHP Version: 5_3 SVN-2010-03-17 (dev) OS: Irrelevant
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:
Bug Type:
From: sb at sebastian-bergmann dot de
New email:
PHP Version: OS:


 [2010-03-17 00:39 UTC] sb at sebastian-bergmann dot de
The GearmanClient class has a method named echo(). echo is a reserved keyword in PHP. This leads to the problem described in


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-13 04:16 UTC] szjani at gmail dot com
A would like to test method which use Gearman. I should mock Gearman's do() method with PHPUnit, but it's impossible because it's a reserved keyword.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC