#40611 [Csd->Opn]: cURL memory error
ID: 40611 User updated by: zamorov at edinorog dot ru Reported By: zamorov at edinorog dot ru -Status: Closed +Status: Open Bug Type: cURL related Operating System: FreeBSD 4.11 PHP Version: 4CVS-2007-02-23 (snap) Assigned To: tony2001 New Comment: I get snapshot build on Feb 24, 2007 09:30 GMT Memory bug still not fixed. Add before: curl_setopt($curl, CURLOPT_URL, 'http://bar-navig.yandex.ru/u?sample=test'); $return = curl_exec($curl); this line curl_setopt($curl, CURLOPT_URL, 'http://bar-navig.yandex.ru/u?ver=2&lang=1049&ur l=www.php.net&target=_No__Name:5&show=1&thc=0'); $return = curl_exec($curl); and reload a script of 10-20 times. Previous Comments: [2007-02-23 20:53:39] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. -------- [2007-02-23 18:05:35] zamorov at edinorog dot ru Description: cURL 1.15.5, 1.16.0 and 1.16.1 Got many error in log if request site with empty body. Sample: http://bar-navig.yandex.ru/u?sample=test HTTP/1.1 200 Ok Connection: close Cache-control: no-cache, max-age=0 Expires: Thu, 01 Jan 1970 00:00:01 GMT Content-Type: text/html; charset=windows-1251 and no body. Reproduce code: --- http://bar-navig.yandex.ru/u?sample=test'); $return = curl_exec($curl); echo (curl_errno($this->Curl) == 0) ? 'ok' : 'error'; ?> Expected result: error.log many lines with httpd in free(): warning: page is already free httpd in free(): warning: chunk is already free and Integer overflow in memory_limit check detected Actual result: -- Zero page. -- Edit this bug report at http://bugs.php.net/?id=40611&edit=1
#40611 [NEW]: cURL memory error
From: zamorov at edinorog dot ru Operating system: FreeBSD 4.11 PHP version: 4CVS-2007-02-23 (snap) PHP Bug Type: cURL related Bug description: cURL memory error Description: cURL 1.15.5, 1.16.0 and 1.16.1 Got many error in log if request site with empty body. Sample: http://bar-navig.yandex.ru/u?sample=test HTTP/1.1 200 Ok Connection: close Cache-control: no-cache, max-age=0 Expires: Thu, 01 Jan 1970 00:00:01 GMT Content-Type: text/html; charset=windows-1251 and no body. Reproduce code: --- http://bar-navig.yandex.ru/u?sample=test'); $return = curl_exec($curl); echo (curl_errno($this->Curl) == 0) ? 'ok' : 'error'; ?> Expected result: error.log many lines with httpd in free(): warning: page is already free httpd in free(): warning: chunk is already free and Integer overflow in memory_limit check detected Actual result: -- Zero page. -- Edit bug report at http://bugs.php.net/?id=40611&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40611&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40611&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40611&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40611&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40611&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40611&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=40611&r=needscript Try newer version:http://bugs.php.net/fix.php?id=40611&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40611&r=support Expected behavior:http://bugs.php.net/fix.php?id=40611&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40611&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40611&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40611&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40611&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40611&r=dst IIS Stability:http://bugs.php.net/fix.php?id=40611&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40611&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40611&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40611&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=40611&r=mysqlcfg
#32349 [Bgs->Opn]: basename with \
ID: 32349 User updated by: zamorov at edinorog dot ru Reported By: zamorov at edinorog dot ru -Status: Bogus +Status: Open Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: php4-STABLE-200503181130 New Comment: Sample. I'm upload file from windows to unix. $_FILES[etc]['name'] contain path with backslash, but basename understand only forward slash. Use $imageName =& array_pop(split('/', strtr($_FILES['image']['name'], array('\\' => '/'; rather than $imageName =& basename($_FILES['image']['name']); wise choice? Previous Comments: [2005-03-18 15:08:24] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Qutiong php.net/basename "On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/)." -------- [2005-03-18 14:41:29] zamorov at edinorog dot ru That problem remained open. [2005-03-17 09:34:06] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip -------- [2005-03-17 09:28:13] zamorov at edinorog dot ru Description: basename not work correctly with windows path Reproduce code: --- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: $win = 'win.ini'; $unix = 'win.ini'; Actual result: -- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; -- Edit this bug report at http://bugs.php.net/?id=32349&edit=1
#32349 [Fbk->Opn]: basename with \
ID: 32349 User updated by: zamorov at edinorog dot ru Reported By: zamorov at edinorog dot ru -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: FreeBSD -PHP Version: 4.3.10 +PHP Version: php4-STABLE-200503181130 New Comment: That problem remained open. Previous Comments: [2005-03-17 09:34:06] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-17 09:28:13] zamorov at edinorog dot ru Description: basename not work correctly with windows path Reproduce code: --- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: $win = 'win.ini'; $unix = 'win.ini'; Actual result: -- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; -- Edit this bug report at http://bugs.php.net/?id=32349&edit=1
#32349 [NEW]: basename with \
From: zamorov at edinorog dot ru Operating system: FreeBSD PHP version: 4.3.10 PHP Bug Type: Filesystem function related Bug description: basename with \ Description: basename not work correctly with windows path Reproduce code: --- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: $win = 'win.ini'; $unix = 'win.ini'; Actual result: -- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; -- Edit bug report at http://bugs.php.net/?id=32349&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32349&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32349&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32349&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32349&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32349&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32349&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32349&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32349&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32349&r=support Expected behavior: http://bugs.php.net/fix.php?id=32349&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32349&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32349&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32349&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32349&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32349&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32349&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32349&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32349&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32349&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32349&r=mysqlcfg