Skip to content

moar tests passing #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 1, 2015
Merged

moar tests passing #180

merged 8 commits into from
Sep 1, 2015

Conversation

krakjoe
Copy link
Member

@krakjoe krakjoe commented Aug 31, 2015

Down to 6 failures ... out of time for today ...

The way value is dtored/reset when unserialized fails is inconsistent for different serializers, don't know if that is intended.

One of the failures remaining is because a cas_token is set unconditionally, but the test seems to expect it to be null still, seems like an anomaly.

Another is because of making objects null in ctor ... I didn't change the test, but making objects null in ctor is a really quite horrible practice, can we leave it in PHP5 ?

@@ -21,7 +21,7 @@ var_dump($m->deleteByKey('keffe', ''));
echo $m->getResultMessage(), "\n";
var_dump($m->deleteByKey('', 'keffe'));
echo $m->getResultMessage(), "\n";
var_dump($m->deleteByKey('keffe', '���as�� �a�sd�f asdf'));
var_dump($m->deleteByKey('keffe', '���as�� �a�sd�f asdf')); # no spaces allowed
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it seems like I just changed these to pass, but it really looks like this is the expected result. strchr is ran on the keys everywhere to check for spaces ...

echo $m->getResultMessage(), "\n";

--EXPECTF--
bool(false)
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE
bool(false)
%rCLIENT ERROR|NOT FOUND%r
A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this appears to be right, strchr is ran on the key to check for spaces ...

@mkoppanen
Copy link
Member

Looks like the build fails with /tmp/php-memcached-build/memcached-2.2.0/php_memcached.h:23:33: fatal error: Zend/zend_smart_str.h: No such file or directory

@krakjoe
Copy link
Member Author

krakjoe commented Sep 1, 2015

I was hoping it would be green before merging, but let me get this merged and get the other dependencies tested and then I'll work in php7 branch ...

krakjoe added a commit that referenced this pull request Sep 1, 2015
@krakjoe krakjoe merged commit 5d2dd03 into php-memcached-dev:php7 Sep 1, 2015
@krakjoe krakjoe deleted the moar-tests-passing branch September 1, 2015 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants