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