Bug #76330 [NEW]: XPath only works in a linux server not local windows IIS

From: Date: Fri, 11 May 2018 15:13:53 +0000
Subject: Bug #76330 [NEW]: XPath only works in a linux server not local windows IIS
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215204@lists.php.net to get a copy of this message
From: kj-8791 at hotmail dot com Operating system: windows 10 enterprise PHP version: 7.2.5 Package: *XML functions Bug Type: Bug Bug description:XPath only works in a linux server not local windows IIS Description: ------------ problem is only $data is null in a local windows IIS even if i connect a domain to my localhost, so a question is Windows 10 Enterprise lacking something default as PHP stats XPath is integrated and is working in a linux enviroment?? i have PHP 7.2.5 plus Microsoft VC15 runtime no changes are made to the system files standard installation of PHP Question? What is needed for this to work in windows? as Windows Enterprise should have all needed because PHP code works Test script: --------------- //Get parsing url for retrieving forex data $parseurl="https://www.investing.com/technical/technical-summary"; //Create XPath object $parsedoc=new DOMDocument();@$parsedoc->loadHTMLFile($parseurl);$xpath=new DOMXPath($parsedoc); $data=$xpath->query('//*[@id="technical_summary_container"]/table/tbody/tr[3]/td[2]')->item(0)->nodeValue."\n"; echo $data; Expected result: ---------------- $data should have one of this results Strong Sell Sell Neutral Buy Strong Buy Actual result: -------------- $data is null in a windows 10 Enterprise PHP standard installation, without plugins and external packages -- Edit bug report at https://bugs.php.net/bug.php?id=76330&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76330&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76330&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76330&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76330&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76330&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76330&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76330&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76330&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76330&r=support Expected behavior: https://bugs.php.net/fix.php?id=76330&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76330&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76330&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76330&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76330&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76330&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76330&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76330&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76330&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76330&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76330&r=mysqlcfg

« previous php.bugs (#215204) next »