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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Aug 19 10:01:27 2019 UTC