aerospike-community / aerospike-client-php

Aerospike client for PHP7
Apache License 2.0
29 stars 28 forks source link

Update aerospike.php to use `Aerospike::OK` as int #67

Open Philosoft opened 3 years ago

Philosoft commented 3 years ago

As per C header file https://github.com/aerospike/aerospike-client-c/blob/648cb21e880e3039a086e3c412f19a7b4e3fd116/src/include/aerospike/as_status.h#L106-L113 And actual behavior

php > var_dump(phpversion());
string(6) "7.3.18"
php > var_dump(phpversion('aerospike'));
string(5) "7.5.2"
php > var_dump(Aerospike::OK);
int(0)