Bug #67132 [Opn->Wfx]: Long docblock causes memoryleak.
| From: | bjori@php.net | Date: | Fri, 25 Apr 2014 16:03:11 +0000 |
| Subject: | Bug #67132 [Opn->Wfx]: Long docblock causes memoryleak. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185442@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67132&edit=1
ID: 67132
Updated by: bjori@php.net
Reported by: m dot celmare at gmail dot com
Summary: Long docblock causes memoryleak.
-Status: Open
+Status: Wont fix
Type: Bug
-Package: Doc Build problem
+Package: Reproducible crash
Operating System: Windows 7 64bit
PHP Version: 5.4.27
Block user comment: N
Private report: N
New Comment:
swagger is not a php.net extension.
Please report issues on their github page: https://github.com/zircote/swagger-php/issues
Previous Comments:
------------------------------------------------------------------------
[2014-04-25 13:53:21] m dot celmare at gmail dot com
Description:
------------
When using Swagger-PHP to parse API Models with massive docblocks Apache resets the connection. PHP
doesn't record any error in the php-error.log. The operating system records the following error
in it's log:
Problem signature:
Problem Event Name: APPCRASH
Application Name: httpd.exe
Application Version: 2.4.9.0
Application Timestamp: 5326ca71
Fault Module Name: php5ts.dll
Fault Module Version: 5.4.27.0
Fault Module Timestamp: 533ca875
Exception Code: c00000fd
Exception Offset: 0006d2c2
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: fe6d
Additional Information 2: fe6de80cc3219ffbfd252ae4bf2c0ab7
Additional Information 3: 284c
Additional Information 4: 284c285a14d3981816a2687969853162
This problem appeared both in PHP 5.4.27 and PHP 5.4.16 both being the 32bit version. I was able to
reproduce the issue with both:
WAMPSERVER (32 bits & PHP 5.4) 2.4
XAMPP (1.8.2 / PHP 5.4.27) 32bits
Test script:
---------------
<?php
namespace Controllers\API\Company\RequestModels;
/**
* @SWG\Model()
*/
class Search {
/**
* @SWG\Property(required=true, type="SearchFilter")
*/
public $filter;
/**
* @SWG\Property(required=true, type="string",
enum="['active_member.asc','active_member.desc','name.asc','name.desc','jobs_count.asc','jobs_count.desc','cv_download_limit.asc','cv_download_limit.desc','references_count.asc','references_count.desc','last_login.asc','last_login.desc','register_date.asc','register_date.desc','last_comment_date_created.asc','last_comment_date_created.desc']")
*/
public $sort;
/**
* @SWG\Property(required=true, type="integer")
*/
public $pageNr;
/**
* @SWG\Property(required=true, type="integer")
*/
public $pageSize;
}
Expected result:
----------------
When parsing with Swagger PHP a JSON should be produced.
Actual result:
--------------
Apache resets the connection.
The Operating System logs the following error:
Problem signature:
Problem Event Name: APPCRASH
Application Name: httpd.exe
Application Version: 2.4.9.0
Application Timestamp: 5326ca71
Fault Module Name: php5ts.dll
Fault Module Version: 5.4.27.0
Fault Module Timestamp: 533ca875
Exception Code: c00000fd
Exception Offset: 0006d2c2
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: fe6d
Additional Information 2: fe6de80cc3219ffbfd252ae4bf2c0ab7
Additional Information 3: 284c
Additional Information 4: 284c285a14d3981816a2687969853162
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67132&edit=1