php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81559 curl_init - memory leak
Submitted: 2021-10-28 05:49 UTC Modified: 2021-11-07 04:22 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jurasciix at gmail dot com Assigned:
Status: No Feedback Package: cURL related
PHP Version: 8.0.12 OS: Windows NT 10.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
30 + 30 = ?
Subscribe to this entry?

 
 [2021-10-28 05:49 UTC] jurasciix at gmail dot com
Description:
------------
When the curl_init function is called without an internet connection, it causes a memory leak, which causes the PHP interpreter to crash.

Test script:
---------------
// begin. IMPORTANT: this must be execute WITHOUT an internet connection.
$ch = curl_init();
// end

Expected result:
----------------
The FALSE.

Actual result:
--------------
PHP interpreter crashes due to memory leak.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-28 08:06 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2021-10-28 08:06 UTC] requinix@php.net
PHP doesn't crash simply because there's a memory leak.

How about giving some more information about what you discovered? Memory leak where? How did you determine that? Got a crash dump or backtrace?
 [2021-11-07 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 20:01:31 2024 UTC