Bug #76684 [NEW]: Curl BC break with CURLOPT_URL with domain relative url

From: Date: Mon, 30 Jul 2018 12:14:08 +0000
Subject: Bug #76684 [NEW]: Curl BC break with CURLOPT_URL with domain relative url
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216523@lists.php.net to get a copy of this message
From: maggus dot staab+php at googlemail dot com Operating system: PHP version: 7.2.8 Package: cURL related Bug Type: Bug Bug description:Curl BC break with CURLOPT_URL with domain relative url Description: ------------ when using domain relative urls with curl, this worked on php5 and also on php7.0 we are in the process of testing our software with php7.2 and see that we get a error in this case "<url> malformed". I agree using the CURLOPT_URL option without absolute urls is not ideal, but since it worked in the past I would at least not expect a BC break with this behaviour in the php7.* series Test script: --------------- $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '/mytest'); curl_exec($ch); $error = ''; if (curl_errno($ch) != 0) { $error = curl_error($ch); } var_dump($error); -- Edit bug report at https://bugs.php.net/bug.php?id=76684&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76684&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76684&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76684&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76684&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76684&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76684&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76684&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76684&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76684&r=support Expected behavior: https://bugs.php.net/fix.php?id=76684&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76684&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76684&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76684&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76684&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76684&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76684&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76684&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76684&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76684&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76684&r=mysqlcfg

« previous php.bugs (#216523) next »