No problems, created, thanks
Posts by Athar
-
-
Hi Nuxwin and HB to you (don't buy a car ),
I'm faced to an issue, which I'm unsure why it happen.
Steps to reproduce :
- Get into any customers
- Create a subdomain
- In LetsEncrypt, request a certificate for this newly created subdomain (after a few minutes for DNS replication)
- Go back to the subdomain, SSL Management then enable HSTS
There, I get :
- An unexpected error occur.
- An email with this content :
QuoteCher administrateur,
Ceci est un message automatique envoyé par le panneau de contrôle
i-MSCP:
Nom du serveur: X
IP du serveur: X
IP du client: X
Version: 1.5.3
Build: 2018120800
Séverité: Error
==========================================================================
[X] Couldn't not update HSTS parameters: SQLSTATE[HY093]:
Invalid parameter number: number of bound variables does not match number of tokens ==========================================================================
Veuillez ne pas répondre à ce message.
________________
i-MSCP Mailer
As you can see, I can't go further, I don't even get the SQL query
For the test, I did create another subdomain for which I have a Comodo cert.
Did add the certificate to that subdomain, then after, enable HSTS, it work.
There might be something wrong between Letsencrypt plugin and subdomain.
LetsEncrypt on a base domain is working just fine for HSTS, only subdomain seems impacted.
What can I do to troubleshot this error ?
Versions :
Debian 9.8 up-to-date
I--MSCP 1.5.3-2018120800
LetsEncrypt : 3.5.0
PHP Fcgi
-
Hummm, really odd so.
When I did the upgrade from 1.3.1 to 1.3.16 (then 1.4.7 and finally, 1.5.3), root user got always deleted (don't ask me why, I never check that).
Most of the time, I did recreate the root user on the SQL server, but as far as I remember, each time I did an upgrade, it get wiped-out.
Like I told you in private, I'm going to fully reinstall my server, maybe something is wrong on it, I really don't know, but if you tell me it's not deleted by the setup, well, must be my server and in that case, forget this message
-
Hi Nuxwin ,
I got this exact same issue as described there : IMSCP 1.4.0 backup error
I did the upgrade from 1.3.1 version to latest, and during this process, we get ride of the root MySQL user (get deleted and everything else, which is fine for me, root bring so much risks).
After that, all i-mscp process using SQL connection should pass through imscp_user (right ?), but as some may have a "/root/.my.cnf" file with root credential, all new SQL backup will fail
I was wondering if checking that the file exist on the system, if we should not "delete" (=> brutal) or "rename" (=> safer) it during any imscp (re)configuration process ?
-
Hi,
I'll do some kind of "Nuxwin" answer : If you don't know how the server work, we will not teach you that.
On other hand, I'll just say that SSL/TLS is enabled IF you have add a certificate for services.
- For IMAP, when SSL/TLS is enabled, you should use port 993
- For SMTP, you use the "encrypted" port with... no encryption ?
So, first, check your installation and you should be fine after, find if you enabled SSL or not would be a good place to start.
i-MSCP is just a piece of software that help managing your server, but it use standard (postfix, courier, dovecot, etc...), so if you don't have the sufficient knowledge for this, I'm sorry to tell you that but, find someone who knows about those things (or pay Nuxwin , see his profile for his prices)
-
Hi Sagi,
Well, I'll just guess that your version is WAY TOO OLD.
PHP Switcher v2.2.2 - released on May 13th 2016
Latest version : v4.0.3 - released on Nov 10th 2017
So, unless you do not purchase it and grab this old version in a way we will not talk there... your only option will be the purchase and upgrade on your server.
Purchase are made there : https://i-mscp.net/wcf/paid-subscription-list/
PS : Tested on my server, when PHP support is removed, the option is too.
-
Hi Nuxwin ,
I would have loved to not bother you, but... yeah, don't know what's going on there.
I've got the same issue stated there : Error Compiling PHP Versions for PHP Switcher
I did apply the "downgrade" package, it did work (for the downgrade) but... after I try the compile again, it fail, take some more time to get into the error and give a bunch of text, but the error remain
Debian : 8.11
iMSCP : Latest (1.5.3-2018120800)
PHPSwitcher : 4.0.3
Command run : perl php_compiler.pl --auto-setup --skip-builddeps 5.6 7.0 7.1
Solutions applied :
- this PhpSwitcher plugin (4.0.3) - Build dependency problem on Debian Jessie
- and this Error Compiling PHP Versions for PHP Switcher
I keep searching on my end, but maybe you already have the solution
Thanks.
The error log :
Quotelibtool: link: ( cd "ext/interbase/.libs" && rm -f "interbase.la" && ln -s "../interbase.la" "interbase.la" )
make[1]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.32/5.6-build'
/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:380: recipe for target 'build-5.6-stamp' failed
[ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-5.6.32: aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
configure: WARNING: recode extension can not be used together with: imap
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
/usr/local/src/phpswitcher/php-5.6.32/ext/curl/interface.c: In function '_php_curl_setopt':
/usr/local/src/phpswitcher/php-5.6.32/ext/curl/interface.c:2643:17: warning: assignment discards 'const' qualifier from pointer target type
if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + Z_STRLEN_PP(current)))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/curl/interface.c:2646:21: warning: assignment discards 'const' qualifier from pointer target type
if ((filename = php_memnstr(postval, ";filename=", sizeof(";filename=") - 1, postval + Z_STRLEN_PP(current)))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_error':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:511:2: warning: 'isc_interprete' is deprecated (declared at /usr/include/ibase.h:787) [-Wdeprecated-declarations]
while ((s - IBG(errmsg)) < MAX_ERRMSG - (IBASE_MSGSIZE + 2) && isc_interprete(s, &statusp)) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_commit_link':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:592:26: warning: comparison between pointer and integer
if (p->trans->handle != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:600:26: warning: comparison between pointer and integer
if (p->trans->handle != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_close_link':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:642:19: warning: comparison between pointer and integer
if (link->handle != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_close_plink':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:657:19: warning: comparison between pointer and integer
if (link->handle != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_free_trans':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:672:20: warning: comparison between pointer and integer
if (trans->handle != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function 'zif_ibase_drop_db':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:1110:42: warning: assignment makes integer from pointer without a cast
if (l->trans != NULL) l->trans->handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c: In function '_php_ibase_def_trans':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:1291:15: warning: assignment makes integer from pointer without a cast
tr->handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/interbase.c:1297:18: warning: comparison between pointer and integer
if (tr->handle == NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function '_php_ibase_alloc_query':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:331:17: warning: assignment makes integer from pointer without a cast
ib_query->stmt = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function '_php_ibase_bind':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:740:6: warning: initialization makes integer from pointer without a cast
ibase_blob ib_blob = { NULL, BLOB_INPUT };
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:740:6: warning: (near initialization for 'ib_blob.bl_handle')
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function '_php_ibase_exec':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:887:7: warning: assignment makes integer from pointer without a cast
tr = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:926:32: warning: comparison between pointer and integer
if (ib_query->trans->handle == NULL && ib_query->trans_res_id != 0) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function 'zif_ibase_query':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:1185:19: warning: assignment makes integer from pointer without a cast
ib_query.stmt = NULL; /* keep stmt when free query */
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function '_php_ibase_fetch_hash':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:1553:29: warning: assignment makes integer from pointer without a cast
blob_handle.bl_handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c: In function 'zif_ibase_execute':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:1837:31: warning: comparison between pointer and integer
if (ib_query->trans->handle == NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_query.c:1844:18: warning: assignment makes integer from pointer without a cast
result->stmt = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c: In function '_php_ibase_free_event':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:48:27: warning: comparison between pointer and integer
if (event->link->handle != NULL &&
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c: In function '_php_ibase_event_block':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:106:40: warning: passing argument 1 of 'isc_event_block' from incompatible pointer type
*l = (unsigned short) isc_event_block(event_buf, result_buf, count, events[0],
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:736:28: note: expected 'ISC_UCHAR **' but argument is of type 'char **'
ISC_LONG ISC_EXPORT_VARARG isc_event_block(ISC_UCHAR**,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:106:51: warning: passing argument 2 of 'isc_event_block' from incompatible pointer type
*l = (unsigned short) isc_event_block(event_buf, result_buf, count, events[0],
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:736:28: note: expected 'ISC_UCHAR **' but argument is of type 'char **'
ISC_LONG ISC_EXPORT_VARARG isc_event_block(ISC_UCHAR**,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:119:19: warning: passing argument 1 of 'isc_event_counts' from incompatible pointer type
isc_event_counts(dummy_count, *l, *event_buf, *result_buf);
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:751:17: note: expected 'ISC_ULONG *' but argument is of type 'long unsigned int *'
void ISC_EXPORT isc_event_counts(ISC_ULONG*,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c: In function 'zif_ibase_wait_event':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:179:19: warning: passing argument 1 of 'isc_event_counts' from incompatible pointer type
isc_event_counts(occurred_event, buffer_size, event_buffer, result_buffer);
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:751:17: note: expected 'ISC_ULONG *' but argument is of type 'long unsigned int *'
void ISC_EXPORT isc_event_counts(ISC_ULONG*,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c: In function '_php_ibase_callback':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:227:21: warning: passing argument 1 of 'isc_event_counts' from incompatible pointer type
isc_event_counts(occurred_event, buffer_size, event->event_buffer, event->result_buffer);
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:751:17: note: expected 'ISC_ULONG *' but argument is of type 'long unsigned int *'
void ISC_EXPORT isc_event_counts(ISC_ULONG*,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:249:25: warning: passing argument 6 of 'isc_que_events' from incompatible pointer type
event->event_buffer,(isc_callback)_php_ibase_callback, (void *)event)) {
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:835:23: note: expected 'ISC_EVENT_CALLBACK' but argument is of type 'void (*)()'
ISC_STATUS ISC_EXPORT isc_que_events(ISC_STATUS*,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c: In function 'zif_ibase_set_event_handler':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:359:23: warning: passing argument 6 of 'isc_que_events' from incompatible pointer type
event->event_buffer,(isc_callback)_php_ibase_callback, (void *)event)) {
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/php_ibase_includes.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_events.c:28:
/usr/include/ibase.h:835:23: note: expected 'ISC_EVENT_CALLBACK' but argument is of type 'void (*)()'
ISC_STATUS ISC_EXPORT isc_que_events(ISC_STATUS*,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function '_php_ibase_free_blob':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:39:25: warning: comparison between pointer and integer
if (ib_blob->bl_handle != NULL) { /* blob open*/
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_create':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:221:21: warning: assignment makes integer from pointer without a cast
ib_blob->bl_handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_open':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:265:21: warning: assignment makes integer from pointer without a cast
ib_blob->bl_handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_add':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:299:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 zend_get_parameters_ex(2, &blob_arg, &string_arg) == FAILURE) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_get':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:325:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 2 zend_get_parameters_ex(2, &blob_arg, &len_arg) == FAILURE) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function '_php_ibase_blob_end':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:351:2: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
if (ZEND_NUM_ARGS() != 1 zend_get_parameters_ex(1, &blob_arg) == FAILURE) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:365:22: warning: assignment makes integer from pointer without a cast
ib_blob->bl_handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:373:22: warning: assignment makes integer from pointer without a cast
ib_blob->bl_handle = NULL;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_info':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:405:2: warning: initialization makes integer from pointer without a cast
ibase_blob ib_blob = { NULL, BLOB_INPUT };
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:405:2: warning: (near initialization for 'ib_blob.bl_handle')
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_echo':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:481:2: warning: initialization makes integer from pointer without a cast
ibase_blob ib_blob_id = { NULL, BLOB_OUTPUT };
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:481:2: warning: (near initialization for 'ib_blob_id.bl_handle')
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c: In function 'zif_ibase_blob_import':
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:542:2: warning: initialization makes integer from pointer without a cast
ibase_blob ib_blob = { NULL, 0 };
^
/usr/local/src/phpswitcher/php-5.6.32/ext/interbase/ibase_blobs.c:542:2: warning: (near initialization for 'ib_blob.bl_handle')
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/grapheme/grapheme_string.c: In function 'zif_grapheme_extract':
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/grapheme/grapheme_string.c:868:14: warning: comparison of distinct pointer types lacks a cast
if ( pstr >= str_end ) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/timezone/timezone_methods.cpp: In function 'void zif_intltz_create_time_zone_id_enumeration(int, zval*, zval**, zval*, int)':
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/timezone/timezone_methods.cpp:251:16: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
arg3isnull = zend_get_parameters_ex(3, &dummy, &dummy, &zvoffset)
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/timezone/timezone_methods.cpp:251:67: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
arg3isnull = zend_get_parameters_ex(3, &dummy, &dummy, &zvoffset)
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp: In function 'void zif_breakiter_set_text(int, zval*, zval**, zval*, int)':
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp:165:12: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
int res = zend_get_parameters_ex(1, &textzv);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp:165:45: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
int res = zend_get_parameters_ex(1, &textzv);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp: In function 'void zif_breakiter_next(int, zval*, zval**, zval*, int)':
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp:278:13: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
int res = zend_get_parameters_ex(1, &arg);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/intl/breakiterator/breakiterator_methods.cpp:278:43: warning: 'int zend_get_parameters_ex(int, ...)' is deprecated (declared at /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_API.h:241) [-Wdeprecated-declarations]
int res = zend_get_parameters_ex(1, &arg);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mcrypt/mcrypt_filter.c: In function 'php_mcrypt_filter_create':
/usr/local/src/phpswitcher/php-5.6.32/ext/mcrypt/mcrypt_filter.c:210:37: warning: passing argument 1 of 'mcrypt_module_open' discards 'const' qualifier from pointer target type
mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir);
^
In file included from /usr/include/mcrypt.h:4:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/mcrypt/mcrypt_filter.c:25:
/usr/include/mutils/mcrypt.h:38:9: note: expected 'char *' but argument is of type 'const char *'
MCRYPT mcrypt_module_open(char *algorithm,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mssql/php_mssql.c: In function 'php_mssql_do_connect':
/usr/local/src/phpswitcher/php-5.6.32/ext/mssql/php_mssql.c:804:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
link = (int) index_ptr->ptr;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mssql/php_mssql.c: In function 'php_mssql_get_column_content_without_type':
/usr/local/src/phpswitcher/php-5.6.32/ext/mssql/php_mssql.c:1157:13: warning: passing argument 1 of 'spprintf' from incompatible pointer type
spprintf(&res_buf, 0, "%d-%02d-%02d %02d:%02d:%02d" , dateinfo.year, dateinfo.month, dateinfo.day, dateinfo.hour, dateinfo.minute, dateinfo.second);
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/main/php.h:242:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/mssql/php_mssql.c:29:
/usr/local/src/phpswitcher/php-5.6.32/main/spprintf.h:40:12: note: expected 'char **' but argument is of type 'unsigned char **'
PHPAPI int spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c: In function 'zif_odbc_execute':
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c:1409:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void *)params[i-1].fp, 0,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c: In function 'zif_odbc_cursor':
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c:1537:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c: In function 'odbc_do_connect':
/usr/local/src/phpswitcher/php-5.6.32/ext/odbc/php_odbc.c:2673:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
conn_id = (int)index_ptr->ptr;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo/pdo_stmt.c: In function 'really_register_bound_param':
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo/pdo_stmt.c:323:4: warning: conversion lacks type at end of format [-Wformat=]
int len = spprintf(&p, 0, "%.*H", (int) EG(precision), Z_DVAL_P(param->parameter));
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo/pdo_stmt.c:323:4: warning: too many arguments for format [-Wformat-extra-args]
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_dblib/pdo_dblib.c: In function 'zm_startup_pdo_dblib':
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_dblib/pdo_dblib.c:210:14: warning: passing argument 1 of 'dbmsghandle' from incompatible pointer type
dbmsghandle(msg_handler);
^
In file included from /usr/include/sybfront.h:23:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/pdo_dblib/php_pdo_dblib_int.h:45,
from /usr/local/src/phpswitcher/php-5.6.32/ext/pdo_dblib/pdo_dblib.c:32:
/usr/include/sybdb.h:725:13: note: expected 'MHANDLEFUNC' but argument is of type 'int (*)(struct DBPROCESS *, DBINT, int, int, char *, char *, char *, DBUSMALLINT)'
MHANDLEFUNC dbmsghandle(MHANDLEFUNC handler);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/pdo_odbc.c: In function 'zm_startup_pdo_odbc':
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/pdo_odbc.c:135:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)pdo_odbc_pool_on, 0);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/odbc_driver.c: In function 'pdo_odbc_fetch_error_func':
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/odbc_driver.c:49:5: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'SDWORD' [-Wformat=]
einfo->file, einfo->line);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/odbc_driver.c: In function 'pdo_odbc_handle_factory':
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/odbc_driver.c:412:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rc = SQLSetEnvAttr(H->env, SQL_ATTR_CP_MATCH, (void*)pdo_odbc_pool_mode, 0);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/pdo_odbc/odbc_driver.c:435:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rc = SQLSetConnectAttr(H->dbc, SQL_ODBC_CURSORS, (void*)cursor_lib, SQL_IS_INTEGER);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/xsl/xsltprocessor.c: In function 'zif_xsl_xsltprocessor_transform_to_doc':
/usr/local/src/phpswitcher/php-5.6.32/ext/xsl/xsltprocessor.c:680:18: warning: assignment discards 'const' qualifier from pointer target type
curclass_name = curce->name;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/opcache/ZendAccelerator.c: In function 'accel_use_shm_interned_strings':
/usr/local/src/phpswitcher/php-5.6.32/ext/opcache/ZendAccelerator.c:397:28: warning: assignment discards 'const' qualifier from pointer target type
CG(interned_empty_string) = accel_new_interned_string("", sizeof(""), 0 TSRMLS_CC);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c: In function 'add_assoc_name_entry':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:797:4: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
to_add = ASN1_STRING_data(str);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c: In function 'asn1_time_to_time_t':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:850:2: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
if (ASN1_STRING_length(timestr) != strlen((const char*)ASN1_STRING_data(timestr))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:865:2: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
strbuf = estrdup((char *)ASN1_STRING_data(timestr));
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c: In function 'zif_openssl_spki_export_challenge':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:1873:2: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
RETVAL_STRING((char *) ASN1_STRING_data(spki->spkac->challenge), 1);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c: In function 'openssl_x509v3_subjectAltName':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:2074:6: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
BIO_write(bio, ASN1_STRING_data(as),
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:2080:6: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
BIO_write(bio, ASN1_STRING_data(as),
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:2086:6: warning: 'ASN1_STRING_data' is deprecated (declared at /usr/include/openssl/asn1.h:554) [-Wdeprecated-declarations]
BIO_write(bio, ASN1_STRING_data(as),
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c: In function 'php_openssl_generate_private_key':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:3585:5: warning: 'RSA_generate_key' is deprecated (declared at /usr/include/openssl/rsa.h:234) [-Wdeprecated-declarations]
if (EVP_PKEY_assign_RSA(req->priv_key, RSA_generate_key(req->priv_key_bits, 0x10001, NULL, NULL))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:3593:6: warning: 'DSA_generate_parameters' is deprecated (declared at /usr/include/openssl/dsa.h:117) [-Wdeprecated-declarations]
DSA *dsapar = DSA_generate_parameters(req->priv_key_bits, NULL, 0, NULL, NULL, NULL, NULL);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/openssl.c:3611:6: warning: 'DH_generate_parameters' is deprecated (declared at /usr/include/openssl/dh.h:136) [-Wdeprecated-declarations]
DH *dhpar = DH_generate_parameters(req->priv_key_bits, 2, NULL, NULL);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c: In function 'php_select_crypto_method':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:954:3: warning: 'TLSv1_client_method' is deprecated (declared at /usr/include/openssl/ssl.h:1879) [-Wdeprecated-declarations]
return is_client ? TLSv1_client_method() : TLSv1_server_method();
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:954:3: warning: 'TLSv1_server_method' is deprecated (declared at /usr/include/openssl/ssl.h:1878) [-Wdeprecated-declarations]
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:957:3: warning: 'TLSv1_1_client_method' is deprecated (declared at /usr/include/openssl/ssl.h:1885) [-Wdeprecated-declarations]
return is_client ? TLSv1_1_client_method() : TLSv1_1_server_method();
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:957:3: warning: 'TLSv1_1_server_method' is deprecated (declared at /usr/include/openssl/ssl.h:1884) [-Wdeprecated-declarations]
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:965:3: warning: 'TLSv1_2_client_method' is deprecated (declared at /usr/include/openssl/ssl.h:1891) [-Wdeprecated-declarations]
return is_client ? TLSv1_2_client_method() : TLSv1_2_server_method();
^
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:965:3: warning: 'TLSv1_2_server_method' is deprecated (declared at /usr/include/openssl/ssl.h:1890) [-Wdeprecated-declarations]
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c: In function 'set_server_rsa_key':
/usr/local/src/phpswitcher/php-5.6.32/ext/openssl/xp_ssl.c:1145:2: warning: 'RSA_generate_key' is deprecated (declared at /usr/include/openssl/rsa.h:234) [-Wdeprecated-declarations]
rsa = RSA_generate_key(rsa_key_size, RSA_F4, NULL, NULL);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/zlib/zlib.c:1047:2: warning: initialization from incompatible pointer type
ZEND_MODULE_GLOBALS_CTOR_N(zlib),
^
/usr/local/src/phpswitcher/php-5.6.32/ext/zlib/zlib.c:1047:2: warning: (near initialization for 'php_zlib_module_entry.globals_ctor')
/usr/local/src/phpswitcher/php-5.6.32/ext/bz2/bz2.c: In function '_php_stream_bz2open':
/usr/local/src/phpswitcher/php-5.6.32/ext/bz2/bz2.c:233:12: warning: assignment discards 'const' qualifier from pointer target type
path_copy = path;
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/main/php.h:34:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/fileinfo/libmagic/print.c:32:
/usr/local/src/phpswitcher/php-5.6.32/5.6-build/main/php_config.h:2496:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE 1
^
/usr/local/src/phpswitcher/php-5.6.32/ext/fileinfo/libmagic/print.c:31:0: note: this is the location of the previous definition
#define _GNU_SOURCE
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c:51:2: warning: initialization from incompatible pointer type
mbfl_encoding_2022jp_kddi_aliases,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c:51:2: warning: (near initialization for 'mbfl_encoding_2022jp_kddi.aliases')
/usr/local/src/phpswitcher/php-5.6.32/ext/mbstring/mbstring.c: In function 'php_mb_parse_encoding_list':
/usr/local/src/phpswitcher/php-5.6.32/ext/mbstring/mbstring.c:724:14: warning: assignment discards 'const' qualifier from pointer target type
while ((p2 = php_memnstr(p1, ",", 1, endp)) != NULL) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/mbstring/mbstring.c:737:12: warning: assignment discards 'const' qualifier from pointer target type
p2 = p = php_memnstr(p1, ",", 1, endp);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/phar/phar.c: In function 'phar_split_fname':
/usr/local/src/phpswitcher/php-5.6.32/ext/phar/phar.c:2266:11: warning: assignment discards 'const' qualifier from pointer target type
*arch = filename;
^
/usr/local/src/phpswitcher/php-5.6.32/ext/session/session.c: In function 'ps_srlzr_decode_php_serialize':
/usr/local/src/phpswitcher/php-5.6.32/ext/session/session.c:867:41: warning: passing argument 2 of 'php_var_unserialize' from incompatible pointer type
if (php_var_unserialize(&session_vars, &val, endptr, &var_hash TSRMLS_CC)) {
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/session/php_session.h:24:0,
from /usr/local/src/phpswitcher/php-5.6.32/ext/session/session.c:42:
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/php_var.h:53:12: note: expected 'const unsigned char **' but argument is of type 'const char **'
PHPAPI int php_var_unserialize(zval **rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash TSRMLS_DC);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/file.c: In function 'zif_file':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/file.c:764:11: warning: assignment discards 'const' qualifier from pointer target type
if (!(p = php_stream_locate_eol(stream, target_buf, target_len TSRMLS_CC))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'php_explode':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1036:5: warning: assignment discards 'const' qualifier from pointer target type
p2 = php_memnstr(Z_STRVAL_P(str), Z_STRVAL_P(delim), Z_STRLEN_P(delim), endp);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1044:16: warning: assignment discards 'const' qualifier from pointer target type
} while ((p2 = php_memnstr(p1, Z_STRVAL_P(delim), Z_STRLEN_P(delim), endp)) != NULL &&
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'php_explode_negative_limit':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1063:5: warning: assignment discards 'const' qualifier from pointer target type
p2 = php_memnstr(Z_STRVAL_P(str), Z_STRVAL_P(delim), Z_STRLEN_P(delim), endp);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1082:16: warning: assignment discards 'const' qualifier from pointer target type
} while ((p2 = php_memnstr(p1, Z_STRVAL_P(delim), Z_STRLEN_P(delim), endp)) != NULL);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'php_stristr':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1647:2: warning: return discards 'const' qualifier from pointer target type
return php_memnstr(s, t, t_len, s + s_len);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'zif_strstr':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1799:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack, Z_STRVAL_P(needle), Z_STRLEN_P(needle), haystack + haystack_len);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1806:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack, needle_char, 1, haystack + haystack_len);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'zif_strpos':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1851:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack + offset,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1861:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack + offset,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'zif_stripos':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1911:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack_dup + offset, needle_dup, Z_STRLEN_P(needle), haystack_dup + haystack_len);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:1919:9: warning: assignment discards 'const' qualifier from pointer target type
found = php_memnstr(haystack_dup + offset,
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'php_str_to_str_ex':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:3724:26: warning: assignment discards 'const' qualifier from pointer target type
for (p = new_str; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:3736:31: warning: assignment discards 'const' qualifier from pointer target type
for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:3769:15: warning: assignment discards 'const' qualifier from pointer target type
while ((o = php_memnstr(o, n, needle_len, endp))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:3795:27: warning: assignment discards 'const' qualifier from pointer target type
for (p = haystack; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:3812:31: warning: assignment discards 'const' qualifier from pointer target type
for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c: In function 'zif_substr_count':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/string.c:5257:13: warning: assignment discards 'const' qualifier from pointer target type
while ((p = php_memnstr(p, needle, needle_len, endp))) {
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/var.c: In function 'php_var_export_ex':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/var.c:439:3: warning: conversion lacks type at end of format [-Wformat=]
tmp_len = spprintf(&tmp_str, 0,"%.*H", PG(serialize_precision), Z_DVAL_PP(struc));
^
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/var.c:439:3: warning: too many arguments for format [-Wformat-extra-args]
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/url_scanner_ex.c: In function 'handle_form':
/usr/local/src/phpswitcher/php-5.6.32/ext/standard/url_scanner_ex.c:295:20: warning: initialization discards 'const' qualifier from pointer target type
char *e, *p = zend_memnstr(ctx->val.c, "://", sizeof("://") - 1, ctx->val.c + ctx->val.len);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c: In function 'php_wddx_serialize_object':
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c:538:46: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type
if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) {
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/Zend/zend.h:286:0,
from /usr/local/src/phpswitcher/php-5.6.32/main/php.h:36,
from /usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c:25:
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_hash.h:179:14: note: expected 'char **' but argument is of type 'const char **'
ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c:542:42: warning: passing argument 3 of 'php_wddx_serialize_var' discards 'const' qualifier from pointer target type
php_wddx_serialize_var(packet, *ent, prop_name, strlen(prop_name)+1 TSRMLS_CC);
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c:31:0:
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/php_wddx_api.h:63:9: note: expected 'char *' but argument is of type 'const char *'
void php_wddx_serialize_var(wddx_packet *packet, zval *var, char *name, int name_len TSRMLS_DC);
^
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c: In function 'php_wddx_push_element':
/usr/local/src/phpswitcher/php-5.6.32/ext/wddx/wddx.c:874:16: warning: assignment discards 'const' qualifier from pointer target type
while ((p2 = php_memnstr(p1, ",", sizeof(",")-1, endp)) != NULL) {
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/main/php.h:34:0,
from /usr/local/src/phpswitcher/php-5.6.32/main/snprintf.c:22:
main/php_config.h:2496:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE 1
^
/usr/local/src/phpswitcher/php-5.6.32/main/snprintf.c:21:0: note: this is the location of the previous definition
#define _GNU_SOURCE
^
In file included from /usr/local/src/phpswitcher/php-5.6.32/main/php.h:34:0,
from /usr/local/src/phpswitcher/php-5.6.32/main/spprintf.c:80:
main/php_config.h:2496:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE 1
^
/usr/local/src/phpswitcher/php-5.6.32/main/spprintf.c:79:0: note: this is the location of the previous definition
#define _GNU_SOURCE
^
/usr/local/src/phpswitcher/php-5.6.32/main/getopt.c: In function 'php_getopt':
/usr/local/src/phpswitcher/php-5.6.32/main/getopt.c:103:12: warning: assignment discards 'const' qualifier from pointer target type
if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) {
^
In file included from Zend/zend_language_scanner.l:50:0:
Zend/zend_language_scanner.l: In function 'lex_scan':
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_virtual_cwd.h:292:33: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result]
#define VCWD_GETCWD(buff, size) getcwd(buff, size)
^
Zend/zend_language_scanner.l:1666:3: note: in expansion of macro 'VCWD_GETCWD'
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_execute_API.c: In function 'zend_call_function':
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_execute_API.c:832:32: warning: assignment discards 'const' qualifier from pointer target type
EG(opline_before_exception) = current_opline_before_exception;
^
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_string.c: In function 'zend_interned_strings_init':
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_string.c:65:28: warning: assignment discards 'const' qualifier from pointer target type
CG(interned_empty_string) = zend_new_interned_string_int("", sizeof(""), 0 TSRMLS_CC);
^
In file included from Zend/zend_config.h:1:0,
from /usr/local/src/phpswitcher/php-5.6.32/Zend/zend.h:51,
from /usr/local/src/phpswitcher/php-5.6.32/Zend/zend_signal.c:33:
Zend/../main/php_config.h:2496:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE 1
^
/usr/local/src/phpswitcher/php-5.6.32/Zend/zend_signal.c:30:0: note: this is the location of the previous definition
#define _GNU_SOURCE
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_log.c: In function 'fpm_log_write':
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_log.c:470:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(fpm_log_fd, buffer, len + 1);
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_main.c: In function 'main':
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_main.c:1971:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(fpm_globals.send_config_pipe[1], &writeval, sizeof(writeval));
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_main.c:1980:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(fpm_globals.send_config_pipe[1], &writeval, sizeof(writeval));
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_signals.c: In function 'sig_handler':
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/fpm_signals.c:178:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(sp[1], &s, sizeof(s));
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/zlog.c: In function 'zlog_ex':
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/zlog.c:191:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(zlog_fd > -1 ? zlog_fd : STDERR_FILENO, buf, len);
^
/usr/local/src/phpswitcher/php-5.6.32/sapi/fpm/fpm/zlog.c:195:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(STDERR_FILENO, buf, len);
^
/usr/bin/ld.bfd.real: /usr/lib/x86_64-linux-gnu/libc-client.a(osdep.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libc-client.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [ext/imap/imap.la] Error 1
make[1]: *** Attente des tâches non terminées....
make: *** [build-5.6-stamp] Error 2
The installed version of both packages (downgraded):
Quote# apt-cache policy libicu-dev icu-devtools
libicu-dev:
Installé : 52.1-8+deb8u7
Candidat : 52.1-8+deb8u7
Épinglage de paquet : 52.1-8+deb8u7
Table de version :
63.1-6+0~20190318100909.1+jessie~1.gbp07d7b6 1002
1001 https://packages.sury.org/php/ jessie/main amd64 Packages
*** 52.1-8+deb8u7 1002
500 http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
icu-devtools:
Installé : 52.1-8+deb8u7
Candidat : 52.1-8+deb8u7
Épinglage de paquet : 52.1-8+deb8u7
Table de version :
63.1-6+0~20190318100909.1+jessie~1.gbp07d7b6 1002
1001 https://packages.sury.org/php/ jessie/main amd64 Packages
*** 52.1-8+deb8u7 1002
500 http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
EDIT : Possible fix (PHP 5.6.32, 7.0.25 and PHP 7.1.11), please confirm this way Nuxwin :
For this error only.
Quote/usr/bin/ld.bfd.real: /usr/lib/x86_64-linux-gnu/libc-client.a(osdep.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libc-client.a: error adding symbols: Bad value
Fix :
Quote
rm /usr/lib/x86_64-linux-gnu/libc-client.aln -s /usr/lib/libc-client.so.2007e.0 /usr/lib/x86_64-linux-gnu/libc-client.a
Fix worked for me at least, ouf :
Quote[DONE] The install MAKE(1) target has been successfully executed for php-5.6.32
[DONE] PHP versions scheduled for addition: 5.6
[DONE] PHP versions scheduled for update: 7.0, 7.1
-
Hi all,
A few months back, I open a ER on the Bug Tracker, but want to get some return on it : https://youtrack.i-mscp.net/issue/IP-1462
In short, I've some websites that didn't like UTF8 encoding (and can't convert them), so need to set the ISO-8859-15.
Some times ago, it was set at Apache level, but now, need to be set at PHP level (seems to override the value).So, just to know if that can be implemented at some point in the future, or if I need to make a note on my procedures while updating
-
Move to German corner.
Be aware that you must speak English only when creating a post outside "German Corner", thank you.
-
I also add this:
i-MSCP bugs - Reporting rulesNormaly, you should have agreed with those litle rules
Thanks for your understanding.