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 [NEW]: Set text on cloned GtkLabel gives segmentation fault
by John Dot Navratil At Sbcglobal Dot Net other posts by this author
Jun 28 2007 9:56AM messages near this date
[PHP-GTK-DEV] #41875 [Com]: io_add_watch can't detect HUPs | [PHP-GTK-DEV] #41843 [Bgs]: Set text on cloned GtkLabel gives segmentation fault
From:             john dot navratil at sbcglobal dot net
Operating system: Fedora 7
PHP version:      5.2.3
PHP Bug Type:     PHP-GTK related
Bug description:  Set text on cloned GtkLabel gives segmentation fault

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 bug report at http://bugs.php.net/?id=41843&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41843&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41843&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41843&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41843&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=41843&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41843&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41843&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41843&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41843&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41843&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=41843&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=41843&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41843&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41843&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41843&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41843&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41843&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41843&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41843&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41843&r=mysqlcfg

-- 
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
© ActiveState Software Inc. All rights reserved