php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59117 add version constants
Submitted: 2010-03-15 04:35 UTC Modified: -
From: marc dot bennewitz at giata dot de Assigned:
Status: Open Package: memcached (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-03-15 04:35 UTC] marc dot bennewitz at giata dot de
Description:
------------
Diff:

2833,2839d2832
<   #define REGISTER_MEMC_CLASS_CONST_STRING(name, value) zend_declare_class_constant_string(php_memc_get_ce(), ZEND_STRS( #name ) - 1, value TSRMLS_CC );
<
<   /*
<    * Versions
<    */
<   REGISTER_MEMC_CLASS_CONST_STRING(VERSION_PHP,  PHP_MEMCACHED_VERSION);
<   REGISTER_MEMC_CLASS_CONST_STRING(VERSION_LIB,  memcached_lib_version());
2848d2840
<

Reproduce code:
---------------
var_dump(Memcached::VERSION_PHP);
var_dump(Memcached::VERSION_LIB);

Expected result:
----------------
string(5) "1.0.1"
string(4) "0.38"


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

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 07:01:26 2019 UTC