|  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
 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 22:03:36 2021 UTC