36 Commits

Author SHA1 Message Date
Tomas Srnka
ed8e04e8cc Fixed #60 2019-12-20 16:11:01 +01:00
Tomas Srnka
4b7a24a8b4 Fixed typo in package.xml and php_memcache.h - version fix to 4.0.5.1. 2019-12-19 12:18:18 +01:00
Tomas Srnka
f76dff19e6 Update php_memcache.h
Bumped version to 4.0.5
2019-12-19 09:52:56 +01:00
Dustin Ward
8703c36a4c Fix crash when serialization fails 2019-06-17 13:14:16 -05:00
Tomas Srnka
837d86f8e5 Updated package.xml and php_memcache.h for version 4.0.4 2019-05-28 10:55:34 +02:00
Remi Collet
f3ea5e4bbd Bump version, forgotten in 4.0.3 2019-03-25 07:40:30 +01:00
Remi Collet
fd0cc8c9b0 allow to work with standard session.save_path option and session_save_path function 2019-03-19 11:12:37 +01:00
Tomas Srnka
419a49869f Merge pull request #40 from Jan-E/readd-this-for-php-<-7.2
readd this for php < 7.2
2019-03-19 10:41:31 +01:00
Tomas Srnka
35bde9139e Update php_memcache.h
Change release ver
2019-03-19 09:32:20 +01:00
Jan Ehrhardt
315cf20ace readd this for php < 7.2
Remaining part of https://github.com/websupport-sk/pecl-memcache/pull/30
2019-03-12 09:06:52 +01:00
Andriy Borodiychuk
60415d5ef7 Fix func declaration for mmc_prepare_key_ex
Declaration in header file was not reflecting an actual function and caused compilation error:
```
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c: In function 'php_mmc_store':
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c:643:8: error: too many arguments to function 'mmc_prepare_key_ex'
    if (mmc_prepare_key_ex(ZSTR_VAL(key), ZSTR_LEN(key), request->key, &(request->key_len), MEMCACHE_G(key_prefix)) != MMC_OK) {
        ^~~~~~~~~~~~~~~~~~
In file included from /pecl-memcache-NON_BLOCKING_IO_php7/php7/php_memcache.h:34:0,
                 from /pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c:30:
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache_pool.h:399:5: note: declared here
 int mmc_prepare_key_ex(const char *, unsigned int, char *, unsigned int *);
     ^~~~~~~~~~~~~~~~~~
```
2019-03-08 10:43:36 +01:00
thesource93
7312de0916 Merge pull request #26 from remicollet/issue-session
Fix #23 Failed to read session data with 7.1/7.2
2019-02-27 23:06:10 +01:00
Frantisek Drojak
422626562d reintegrate ws patch 2019-02-27 21:02:14 +01:00
Frantisek Drojak
85af8e3e60 cleanup 2019-02-27 20:43:36 +01:00
Frantisek Drojak
4043142b9e sync with ws repo
fix memory leaks
add variant for redundancy test for php73
fix leak in memcache_pool
add todo:  to fix freeing resources in 7.3 .

test 044.phpt has now variant 044b
 because 7.3 no longer allows changing internal session state (e.g. call session_id . ) ,  this probably needs better handling altogether . but we want to test at least basic redundancy for now
zend_resources in mmc_server_free are freed by GC before, so we don't free again .
disable udp connect for now

cleanup from ci
2019-02-27 20:19:29 +01:00
Frantisek Drojak
8047d507d4 sync with remi's fixes 2019-02-27 20:19:29 +01:00
root
d8e9d4f1e4 drop persistence attribute for zend_string holding session lock due to heap corruption 2019-02-27 20:19:29 +01:00
root
14b0d08c9f maybe fixed GC_ADDREF definition 2019-02-27 20:19:28 +01:00
root
f72a6d2c91 with fixes for php73
use unixtime for session max lifetime
  Merge branch 'revert-f7886618' into 'hackathon'
2019-02-27 20:14:06 +01:00
Marek Beleščiak
d6104b3a01 Fix some memory errors 2019-02-27 19:49:16 +01:00
Marek Beleščiak
614e01414c Fix some tests, fix session redundancy 2019-02-27 19:49:13 +01:00
Marek Beleščiak
f27f37c8f1 Fix more memory errors 2019-02-27 19:47:04 +01:00
Szabolcs Balogh
d37d069c8f fixes for php70 session redundancy and session_regenerate_id() 2019-02-27 19:45:11 +01:00
Andrew Davis
fd9b682745 Test patch for #13 - session_regenerate_id() causes fatal error 2019-02-27 19:37:09 +01:00
Remi Collet
4a9e4ab0d1 Fix #23 Failed to read session data with 7.1/7.2 2017-10-06 12:08:28 +02:00
Tomas Srnka
e702b5f91e Merge pull request #17 from rossaffandy/NON_BLOCKING_IO_php7
Attempt to fixed Bug #73539
2017-08-02 11:38:18 +02:00
kolsys
95b7076e31 Fix PHP7 segfault. https://bugs.php.net/bug.php?id=74008 2017-04-24 13:45:53 +03:00
Tomas Srnka
c312447618 Update formating 2016-12-10 11:36:40 +01:00
Ross Affandy
3d0d553127 Attempt to fixed Bug #73539 2016-12-10 05:08:45 +00:00
Tomas Srnka
73623c356f Merge pull request #15 from Jan-E/Jan-E-fix-PHP71-VC14
Fix Windows build for PHP 7.1
2016-09-22 10:29:59 +02:00
Jan-E
b09302aced Fix Windows build for PHP 7.1
PHP 7.1 builds on Windows (VC14) now fail with unresolved externals.
This fix mimicks the construction at
https://github.com/websupport-sk/pecl-memcache/blob/NON_BLOCKING_IO_php7/php7/memcache_queue.h#L40
2016-09-22 05:19:31 +02:00
Andras Elso
68c495e516 Change timeout parameter to double 2016-09-05 17:13:19 +02:00
Will Fitch
c051ca73ee Remove compilation warnings 2016-02-26 14:50:34 -05:00
Szabolcs Balogh
fdbd46bbc6 INIT_PZVAL removed 2015-11-30 11:20:30 +01:00
Szabolcs Balogh
fa69d6a406 PHP7 port 2015-11-30 02:22:24 +01:00
Szabolcs Balogh
d7e4896dfe split php5/php7 2015-11-30 01:33:57 +01:00