-
Notifications
You must be signed in to change notification settings - Fork 326
php7 branch #194
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
Comments
Is the phpize command you are calling a phpize from PHP 7? Because if you checkout the php7 branch of php-memcached, the phpize must match. (The sequence does work for me with a self-build php7, a php7 phpize from the same build and as shown by you) |
|
I think my compilation is not right too. I can compile the php7 branch, but the When I run
The script I make to install everything from scratch is here: https://github.com/jonathanpmartins/ubuntusetup/blob/master/server/setup-php7-nginx-1.9.10-ubuntu-14.04.sh. Ignore the Ending... My unit test dont pass. I cannot set any property. Seems like the extension is not working properly yet. Can I help with something? |
@isotopp @mkoppanen @krakjoe
|
when you do 'make test' do you have memcached running on 127.0.0.1:11211? |
@pjebs If you are using my ppa, why you just don't |
@mkoppanen Sorry for come nearly 1 month later, but my jobs makes me fly. I get It work, Lets begin:
ubuntu@host:~$ wget https://raw.githubusercontent.com/jonathanpmartins/ubuntusetup/master/server/setup-php7-nginx-1.9.10-ubuntu-14.04-without-memcached.sh;
ubuntu@host:~$ sudo chmod +x setup-php7-nginx-1.9.10-ubuntu-14.04-without-memcached.sh;
ubuntu@host:~$ sudo ./setup-php7-nginx-1.9.10-ubuntu-14.04-without-memcached.sh;
ubuntu@host:~$ which phpize;
/usr/bin/phpize
ubuntu@host:~$ which php
/usr/bin/php
ubuntu@host:~$ php -v
PHP 7.0.4-3+deb.sury.org~trusty+4 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
ubuntu@host:~$ wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
ubuntu@host:~$ tar -zxvf libmemcached-1.0.18.tar.gz
ubuntu@host:~$ cd libmemcached-1.0.18/
ubuntu@host:~/libmemcached-1.0.18$ ./configure
ubuntu@host:~/libmemcached-1.0.18$ make; # (will take a while)
ubuntu@host:~/libmemcached-1.0.18$ sudo make install;
ubuntu@host:~/libmemcached-1.0.18$ cd ..
ubuntu@host:~$ rm libmemcached-1.0.18.tar.gz
ubuntu@host:~$ rm -rf libmemcached-1.0.18/
ubuntu@host:~$ git clone [email protected]:php-memcached-dev/php-memcached.git
ubuntu@host:~$ cd php-memcached/
ubuntu@host:~/php-memcached$ git checkout php7 ubuntu@host:~/php-memcached$ phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012 ubuntu@host:~/php-memcached$ ./configure ubuntu@host:~/php-memcached$ make
----------------------------------------------------------------------
Libraries have been installed in:
/home/ubuntu/php-memcached/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'. ubuntu@host:~/php-memcached$ make test
/bin/bash /home/ubuntu/php-memcached/libtool --mode=install cp ./memcached.la /home/ubuntu/php-memcached/modules
libtool: install: cp ./.libs/memcached.so /home/ubuntu/php-memcached/modules/memcached.so
libtool: install: cp ./.libs/memcached.lai /home/ubuntu/php-memcached/modules/memcached.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin" ldconfig -n /home/ubuntu/php-memcached/modules
----------------------------------------------------------------------
Libraries have been installed in:
/home/ubuntu/php-memcached/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
=====================================================================
PHP : /usr/bin/php7.0
PHP_SAPI : cli
PHP_VERSION : 7.0.4-3+deb.sury.org~trusty+4
ZEND_VERSION: 3.0.0
PHP_OS : Linux - Linux ip-172-31-47-127 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64
INI actual : /home/ubuntu/php-memcached/tmp-php.ini
More .INIs :
CWD : /home/ubuntu/php-memcached
Extra dirs :
VALGRIND : Not used
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 14
---------------------------------------------------------------------
Number of tests : 126 115
Tests skipped : 11 ( 8.7%) --------
Tests warned : 1 ( 0.8%) ( 0.9%)
Tests failed : 17 ( 13.5%) ( 14.8%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 97 ( 77.0%) ( 84.3%)
---------------------------------------------------------------------
Time taken : 18 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Memcached::casByKey() [tests/experimental/cas_bykey.phpt]
Memcached::cas() with strange key [tests/experimental/cas_invalid_key.phpt]
Memcached::deleteByKey() [tests/experimental/delete_bykey.phpt]
Memcached getDelayed() and fetch() with and without cas [tests/experimental/fetch.phpt]
Memcached::get() [tests/experimental/get.phpt]
Memcached::getByKey() with CAS [tests/experimental/get_bykey_cas.phpt]
Memcached::getDelayedByKey() [tests/experimental/getdelayed_bykey.phpt]
Memcached::getDelayedByKey() with CAS [tests/experimental/getdelayed_bykey_cas.phpt]
Memcached getDelayed non string keys [tests/experimental/getdelayed_nonstring_keys.phpt]
Memcached::getMulti() bad server [tests/experimental/getmulti_badserver.phpt]
Memcached::getMultiByKey() [tests/experimental/getmulti_bykey.phpt]
Memcached::getMulti() with empty array [tests/experimental/getmulti_empty.phpt]
Memcached::phpinfo() [tests/experimental/moduleinfo.phpt]
Compress with 0 factor and get [tests/experimental/setget_zero_factor.phpt]
Memcached::setMultiByKey() with bad serialize [tests/experimental/setmulti_badserialize.phpt]
Memcached::getStats() [tests/experimental/stats.phpt]
Memcached::getStats() with bad server [tests/experimental/stats_badserver.phpt]
=====================================================================
=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
Memcached store, fetch & touch expired key [tests/expire.phpt] (warn: XFAIL section but test passes)
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to [email protected] later.
Do you want to send this report now? [Yns]: Y
Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text): [email protected]
Posting to http://qa.php.net/buildtest-process.php
Thank you for helping to make PHP better. ... and here is where I got stuck. But when I see you saying about memcached, I realize that I forgot to install it Trying to install it, even with tests failing: ubuntu@host:~/php-memcached$ sudo make install
Installing shared extensions: /usr/lib/php/20151012/ Installation seems to work, now I can see this information on php info: ubuntu@host:~/php-memcached$ php -i | grep memcached
/etc/php/7.0/cli/conf.d/20-memcached.ini,
memcached
memcached support => enabled
libmemcached version => 1.0.18
memcached.compression_factor => 1.3 => 1.3
memcached.compression_threshold => 2000 => 2000
memcached.compression_type => fastlz => fastlz
memcached.default_binary_protocol => 0 => 0
memcached.default_connect_timeout => 0 => 0
memcached.default_consistent_hash => 0 => 0
memcached.serializer => php => php
memcached.sess_binary_protocol => 1 => 1
memcached.sess_connect_timeout => 0 => 0
memcached.sess_consistent_hash => 1 => 1
memcached.sess_lock_expire => 0 => 0
memcached.sess_lock_max_wait => not set => not set
memcached.sess_lock_retries => 5 => 5
memcached.sess_lock_wait => not set => not set
memcached.sess_lock_wait_max => 2000 => 2000
memcached.sess_lock_wait_min => 1000 => 1000
memcached.sess_locking => 1 => 1
memcached.sess_number_of_replicas => 0 => 0
memcached.sess_persistent => 0 => 0
memcached.sess_prefix => memc.sess. => memc.sess.
memcached.sess_randomize_replica_read => 0 => 0
memcached.sess_remove_failed_servers => 0 => 0
memcached.sess_sasl_password => no value => no value
memcached.sess_sasl_username => no value => no value
memcached.sess_server_failure_limit => 0 => 0
memcached.store_retry_count => 2 => 2 PHPINFO
And thats when I got it to work fine! Some tests are failing, but my unit test are passing... my app goes to production? What do you think? 👍 |
I'm going to close this bug. The original issue was a misconfiguration one, not a bug. The failing tests you are seeing are in the experimental folder, the README is not very precise about how to run tests. If you want to run tests like travis does, do If you think you have an issue, please open a new ticket. |
php-memcached test all skipped with one common reason "cannot connect to server" I'm trying to install it on Centos 7 and these are my steps
made changes in nano /etc/sysconfig/memcached to fit the options below
|
I ran this code below:
`
git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
git checkout php7
phpize
./configure
make
sudo make install
`
It didn't work. The response is below:
make
make: *** No targets specified and no makefile found. Stop.
The text was updated successfully, but these errors were encountered: