ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-dev
php-gtk-dev
[PHP-GTK-DEV] #41843 [Opn->Bgs]: Set text on cloned GtkLabel gives segmentation fault
by anant other posts by this author
Jun 28 2007 10:54AM messages near this date
[PHP-GTK-DEV] #41843 [Bgs]: Set text on cloned GtkLabel gives segmentation fault | [PHP-GTK-DEV] Bug on GtkScintilla on Widows using é
ID:               41843
 Updated by:       anant@[...].net
 Reported By:      john dot navratil at sbcglobal dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         PHP-GTK related
 Operating System: Fedora 7
 PHP Version:      5.2.3
 New Comment:

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

Cloning is not supported in PHP-GTK yet. We're hoping to resolve this 
soon.


Previous Comments:
------------------------------------------------------------------------

[2007-06-28 16:56:42] john dot navratil at sbcglobal dot net

Description:
------------
There is an apparent failure in cloning a GtkLabel (and perhaps other
objects).  I tried to clone an existing label in order to capture all
its properties but got a segmentation fault when reseting the text.

Reproduce code:
---------------
<?php
if (!extension_loaded('php-gtk'))
        dl('php_gtk2.so');

echo "Start\n";
$lbl = new GtkLabel('nada');
echo "Label created\n";
$lbl-> set_text('Text');
echo "Text set\n";
$lbl2 = clone $lbl;
echo "Label cloned\n";
$lbl2-> set_text('New text'); // <-- Fails here
echo "Text reset\n";
?> 


Expected result:
----------------
Start
Label created
Text set
Label cloned
Text reset


Actual result:
--------------
Start
Label created
Text set
Label cloned
Segmentation fault



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41843&edit=1

-- 
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
John Dot Navratil At Sbcglobal Dot Net
John Dot Navratil At Sbcglobal Dot Net
anant

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved