44 Commits

Author SHA1 Message Date
Remi Collet
30a30e62d3 avoid double allocation 2023-05-26 15:54:12 +02:00
Remi Collet
611b58dea3 add myself as author 2023-05-25 15:18:07 +02:00
Remi Collet
3045380b67 fix assignment 2023-05-25 14:29:58 +02:00
Remi Collet
bd7edae1a7 add BitSet::fromInteger() and BitSet::toInteger() 2023-05-25 11:17:11 +02:00
Remi Collet
d03f5accbb more tests for BitSet::length() 2023-05-25 10:32:01 +02:00
Remi Collet
a01de6700a cleanup 2023-05-25 10:28:07 +02:00
Remi Collet
e0b0e46ea4 fix BitSet::fromArray to allow setting bit 0 2023-05-25 10:21:32 +02:00
Christoph M. Becker
11bad9e1ff Fix #63315: BitSet::fromArray may modify original array value
We could prevent that modification by separating the array via ZPP, but
actually there is no need for converting the zval to long; instead we
use `zval_get_long()` what already caters to references.  We also drop
the now useless separation.
2023-04-28 16:04:32 +02:00
Remi Collet
d9fbf240b2 optimize more Op 2023-04-28 16:01:47 +02:00
Remi Collet
31cc58091a implements BitSet::intersects and optimize BitSet::isEmpty 2023-04-28 15:38:51 +02:00
Remi Collet
05e9f3ef16 generates arginfo from stub and add type hinting 2023-04-28 14:04:16 +02:00
Remi Collet
39a70cb32d Fix __toString prototype with PHP 8.2 2022-09-09 16:16:18 +02:00
Will Fitch
4f4534ac09 Fix #12 2017-10-05 16:24:00 -04:00
Will Fitch
2f98f9825a Updated to 7.0 2016-02-29 20:41:32 -05:00
Will Fitch
86e225307e Fix issue with invalid string initialization 2016-02-29 14:30:53 -05:00
Will Fitch
34e05500f4 Fixed issue with string length in zend_string 2016-02-29 14:21:25 -05:00
Will Fitch
fdd581644c Update for PHP7 2016-02-29 14:03:00 -05:00
Will Fitch
aaf685f5a8 Clean up from warnings 2016-02-26 15:00:11 -05:00
Will Fitch
b795141ff5 Fix #9 clear first bit only 2016-02-26 11:57:34 -05:00
Will Fitch
fbc618082c Fix #6 Add fromRawValue 2016-02-26 11:53:51 -05:00
Remi Collet
95ee02568e fix warning: variable 'previous_bit' set but not used [-Wunused-but-set-variable] 2014-10-31 13:16:46 +01:00
Remi Collet
27b7641d81 Fix build with PHP < 5.4 (and min version set to 5.3)
Tested against 5.3.3 (RHEL-6)
2014-10-31 13:12:43 +01:00
Will Fitch
6bb94b49d7 Fix #7 BitSet::set(0) should set the first bit only 2014-10-31 06:24:11 -05:00
Will Fitch
bae5422f45 Implemented bug #63772 to improve length() performance 2012-12-17 12:24:35 -05:00
Will Fitch
ea81df65ad Implemented bug #63772 to improve length() performance 2012-12-17 12:13:40 -05:00
Will Fitch
4f531a98ba Finalizing 2.0 beta 2012-10-19 09:49:32 -04:00
Will Fitch
db7f5b7afe More formatted and fixed authors 2012-10-04 18:14:51 -04:00
Will Fitch
d473940ea7 Added back the old functions and formatted spaces to tabs 2012-10-04 18:11:54 -04:00
Will Fitch
b93c30e229 More 2.0 code with tests for completed methods 2012-10-04 00:11:13 -04:00
Will Fitch
c6d75c2059 More code for 2.0 2012-10-03 01:38:13 -04:00
Will Fitch
ce39512ed5 Updated name for module definition 2012-10-01 09:33:30 -04:00
Will Fitch
555fd2dd82 Updating so work isn't lost 2012-10-01 08:14:34 -04:00
Will Fitch
c5d99037b6 Removed executable bit from files 2012-09-21 11:21:22 -04:00
Johannes Schlüter
3711b5d261 s,function_entry,zend_function_entry,
As announced in http://news.php.net/php.pecl.dev/7123
2010-03-31 20:39:48 +00:00
Kalle Sommer Nielsen
ce2ee4c376 Fix build with 5.3+ 2009-07-03 17:17:18 +00:00
Scott MacVicar
18857ae37d Kill some zend_error() and update the license to 3.01 2009-04-29 22:43:39 +00:00
Scott MacVicar
f493460f36 Fix memory leak, clean up unused functions and remove some old defines. 2008-09-11 23:53:38 +00:00
Scott MacVicar
04a2e9aed4 Fix potential memory leak, there is still another floating about. 2008-09-11 10:42:49 +00:00
Scott MacVicar
07f9bb8469 Add arginfo and clean up a little bit of CS 2008-09-10 16:45:15 +00:00
Steph Fox
6623e7af02 - Bring the majority of PECL extensions into line with macro/x.x.x versioning.
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
2008-03-31 09:27:06 +00:00
Marcus Boerger
be9aac3209 - CS/cleanup 2006-01-01 23:56:53 +00:00
Marcus Boerger
0a67b5d159 - Fix more memory corruptions - now all tests PASS 2006-01-01 23:41:52 +00:00
Marcus Boerger
9effe62df3 - Fix memory corruption (string lentgh is int not long) 2006-01-01 23:34:22 +00:00
Alexander Veremyev
899ae0a78d Bitset extension first checkin 2005-07-22 21:29:15 +00:00