Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96036 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35042 invoked from network); 20 Sep 2016 13:38:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2016 13:38:44 -0000 Authentication-Results: pb1.pair.com header.from=dz@heroku.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dz@heroku.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain heroku.com designates 74.125.82.46 as permitted sender) X-PHP-List-Original-Sender: dz@heroku.com X-Host-Fingerprint: 74.125.82.46 mail-wm0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:36652] helo=mail-wm0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/F6-19521-2EB31E75 for ; Tue, 20 Sep 2016 09:38:43 -0400 Received: by mail-wm0-f46.google.com with SMTP id w84so134751269wmg.1 for ; Tue, 20 Sep 2016 06:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heroku.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MQDjDkGGfW6nPFORZrdSUOYhr5M2uHg74A014cuskRQ=; b=0tGYYq/W4YrtYZJjTaX6LsTNuSl7seIdnuD0ZfA4CN7CMpBsJT0Ij9z6Y7gdvb3T1r pBZCz+j+uJSE46Inyx1k5W0uFliNqOhRAN4p3pdDwXy12iH9a0eOx+dlTVqkn7xt7ej/ sekZfmD1HhhHsHzqTdKZKcWmHB3VOVzetcyGvfSboWxMaEMU+jbV2+Oz0iocxLv93wIZ 9NfU5W4d+Ux4XCEUTRQFsKkOh5shdqQGXa/b2467z4y4j2hG5qq8jnFWTI4NEUgZ7HlK V4MKJLmsH8bVBO8dTIi352QIl/216OA6q57iIaq1zVpQE0dhzBM3KP1T0fOhqYVK8UtI 0Tew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MQDjDkGGfW6nPFORZrdSUOYhr5M2uHg74A014cuskRQ=; b=dfCcDwbKy3GMNXluIt81ulK0DhmxW4p6YeBR7ljhpCbv/+vBw0Bgg/sSLhmvxbfShk e9fY0soWa0/1p2YY6w2to7blvywvbd2MpjkePa6tJspPcqOlf0um382nWjX+4D8+/wwK ddIv0B/9Tg7BlqjPUua0e7owKj4wx8VWwrTfxExINixVhw4aXE2pLEtjBBbJC2MDBZph SmLKmsRGzaddsUJMEsD8Sf98FCcCGfWEiCzjmFSli3QHWVW6bgYc6JaRH99fvv6z90ME Q9S8wkPzWFf0yECTSHsxIsU09BtZtDugIn5m+ETxAPeoLyk+CpBZSxNMjNWdzq2avuSc wZSw== X-Gm-Message-State: AE9vXwNe7Bdhat9gR/l7MKwx5UvggY/umT1GSCoz7PmpqTfoArgmm921OMd988mpoKDFt04n X-Received: by 10.28.67.2 with SMTP id q2mr3661459wma.123.1474378719434; Tue, 20 Sep 2016 06:38:39 -0700 (PDT) Received: from [192.168.19.20] (ipb21b3b9e.dynamic.kabel-deutschland.de. [178.27.59.158]) by smtp.gmail.com with ESMTPSA id 193sm27486426wmo.14.2016.09.20.06.38.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Sep 2016 06:38:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: Date: Tue, 20 Sep 2016 15:38:35 +0200 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <3EBE3FDE-46B4-4439-BB0F-3BE2EE88051B@heroku.com> References: To: Filip Rydlo X-Mailer: Apple Mail (2.3124) Subject: Re: [PHP-DEV] Do You think PHP's SOAP client should have an option to virtuallyAdd (for XSD imports!) missing end-slash in the URI to WSDL? I do! From: dz@heroku.com (David Zuelke) I think it should not. Your pull request fixes a problem in that WSDL. The WSDL is located at the URL = `https://pg.eet.cz/eet/services/EETServiceSOAP/v3?wsdl`. It references an XML Schema file at `EETXMLSchema.xsd`, which is a = relative location, so it's looked for relative to the containing = document, at = `https://pg.eet.cz/eet/services/EETServiceSOAP/EETXMLSchema.xsd`. The correct location is = `https://pg.eet.cz/eet/services/EETServiceSOAP/v3/EETXMLSchema.xsd`, but = that's not PHP's problem. You should contact the owner of the service = and ask them to fix the issue. Not only PHP, but all other clients that = adhere to the spec will be unable to load this file, so it's in their = interest to get it resolved. Failing that, you can 1. use an XML catalog entry on your local system to re-define where = `EETXMLSchema.xsd` is located; 2. load the WSDL file from the origin URL, cache it locally, and rewrite = the `schemaLocation` to contain a full relative path = (`/eet/services/EETServiceSOAP/v3/EETXMLSchema.xsd`) or even an absolute = URL. Then load that local WSDL. You really want to do option 2 in production anyway, because otherwise, = your SoapClient instantiation will fetch the remote WSDL file on each = instantiation, which slows down your app, and may break things even if = you don't make a SOAP call if the endpoint is down. If you want to discuss this further, then the PR on GitHub is the right = spot for discussing this. > On 20.09.2016, at 10:02, Filip Rydlo wrote: >=20 > Hello to all PHP developers! >=20 > If You are interested how we could improve SOAPClient a bit, > please, see my last comment here to understand my *WHYs*. :-) >=20 >=20 > *https://github.com/php/php-src/pull/2121 > * >=20 >=20 > This pull request is in no way complete. It is just a small start = to > let us *track down* the exact code-path *where the problem occurs.* >=20 > Sadly, the example scenario (HOW to reproduce) contains a = *webservice* > which *only works* from *PCs / I.P.s* *located in Czech Republic, > EU. *Hopefully, > some of You also live there... or possibly You have some testing = virtual > webserver located there. :) >=20 >=20 > *I would be happy to test the new feature!* But I am still = unable > to compile PHP5 from the sources on Debian 8.5 x64 because of some = module > called *opcache :-(* >=20 >=20 >=20 >=20 > Here is the error I am getting. I am sure it is a well known = error > for You ... and You certainly know the solution. Unfortunatelly, I am = not > so good in linux development, yet. > Maybe You could tell me how to overcome / workaround this problem, > please?.That would be GREAT ! :-) > I already tried all the classical solutions I could *google-out=C2=A8 = *and > installing all the dependencies.... did not solve *this*. >=20 > Thank You so much. >=20 > Filip The Overtonesinger >=20 >=20 > ------------------------ ERROR compiling php *5.6.24* sources: > ---------------------------------------------- >=20 > /bin/bash /home/bob/A_php5/php-src/libtool --silent = --preserve-dup-deps > --mode=3Dlink cc -DPHP_ATOM_INC -I/home/bob/A_php5/php-src/include > -I/home/bob/A_php5/php-src/main -I/home/bob/A_php5/php-src > -I/home/bob/A_php5/php-src/ext/date/lib -I/usr/include/libxml2 > -I/home/bob/A_php5/php-src/ext/sqlite3/libsqlite > -I/home/bob/A_php5/php-src/TSRM -I/home/bob/A_php5/php-src/Zend > -I/usr/include -g -O2 -fvisibility=3Dhidden -DZEND_SIGNALS -o = ext/opcache/ > opcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath > /home/bob/A_php5/php-src/modules ext/opcache/ZendAccelerator.lo > ext/opcache/zend_accelerator_blacklist.lo > ext/opcache/zend_accelerator_debug.lo = ext/opcache/zend_accelerator_hash.lo > ext/opcache/zend_accelerator_module.lo ext/opcache/zend_persist.lo > ext/opcache/zend_persist_calc.lo ext/opcache/zend_file_cache.lo > ext/opcache/zend_shared_alloc.lo = ext/opcache/zend_accelerator_util_funcs.lo > ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo > ext/opcache/shared_alloc_posix.lo = ext/opcache/Optimizer/zend_optimizer.lo > ext/opcache/Optimizer/pass1_5.lo ext/opcache/Optimizer/pass2.lo > ext/opcache/Optimizer/pass3.lo = ext/opcache/Optimizer/optimize_func_calls.lo > ext/opcache/Optimizer/block_pass.lo > ext/opcache/Optimizer/optimize_temp_vars_5.lo > ext/opcache/Optimizer/nop_removal.lo > ext/opcache/Optimizer/compact_literals.lo = ext/opcache/Optimizer/zend_cfg.lo > ext/opcache/Optimizer/zend_dfg.lo ext/opcache/Optimizer/dfa_pass.lo > ext/opcache/Optimizer/zend_ssa.lo = ext/opcache/Optimizer/zend_inference.lo > ext/opcache/Optimizer/zend_func_info.lo > ext/opcache/Optimizer/zend_call_graph.lo = ext/opcache/Optimizer/zend_dump.lo > Reloading web server: apache2 failed! > Apache2 is not running ... (warning). > Makefile:870: recipe for target 'ext/opcache/opcache.la' failed > make: *** [ext/opcache/opcache.la] Error 1