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
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:
Package:
Bug Type:
Summary:
From: marc dot bennewitz at giata dot de
New email:
PHP Version: OS:

 

 [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 Oct 16 20:01:27 2019 UTC