|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63844 php-gtk out of memory error
Submitted: 2012-12-24 09:36 UTC Modified: 2017-10-24 23:13 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gianluca dot faieta at gmail dot com Assigned:
Status: Suspended Package: PHP-GTK related
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gianluca dot faieta at gmail dot com
New email:
PHP Version: OS:


 [2012-12-24 09:36 UTC] gianluca dot faieta at gmail dot com
Test script crashes after "eating" over 1GB of RAM.
php-cli.ini has memory_limit = -1
The script was run on Windows Server 2008 SP2 and Windows XP SP2 with same 
error. Multiple PHP binaries were tested, with same outcome:

- php-gtk compiled from latest in 
conjunction with PHP 5.4.10-nts binary package

The problem is not in strpos: simply accessing the data (ex. $a=$item['descr']) 
crashes the script.

Older php-gtk package works (, even with 100k elements.

Reducing the number of elements to 5000 solves the bug, but my real application 
uses 100k elements.

Using connect_simple() on every button (instead of connect_signals()) solves the 
bug in the test script but not in the complete application.

Test script:

Expected result:
Press button "Foo" -> "Search OK"
Press button "Bar" -> "Bar was clicked"
Press button "Foo" -> "Search OK"

Actual result:
Press button "Foo" -> "Search OK"
Press button "Bar" -> "Bar was clicked"
Press button "Foo" -> Out of memory


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 23:13 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 23:13 UTC]
I'm gonna suspend this report as the PHP GTK project activity seems halted, if the activity picks backup for the project then this report should be re-opened.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Oct 05 00:01:24 2023 UTC