php.net |  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
Description:
------------
The GearmanClient class has a method named echo(). echo is a reserved keyword in PHP. This leads to the problem described in http://www.phpunit.de/ticket/1008.


Patches

Pull Requests

History

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 Nov 08 17:01:30 2024 UTC