Bug found - causes PHP seg fault
| From: | Steve Conley | Date: | Sun, 26 May 2002 08:10:08 +0000 |
| Subject: | Bug found - causes PHP seg fault | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-409@lists.php.net to get a copy of this message | ||
HEy there;
I've found a bug, dunno if it's PHP or PHP GTK but when I brought it up on
the IRC channel last night I was asked to post here.
This line of code will cause PHP to seg fault when run:
$tilesPix[0]=gdk::pixmap_create_from_xpm_d($tilewindow->$window,null,$blankTile32by32xpm);
The PHP parser SHOULD pick up an error -- namely, it *SHOULD* be
$tilewindow->window INSTEAD of $tilewindow->$window -- but instead of
giving a parse error, PHP seg faults. This line of code works 100% as:
$tilesPix[0]=gdk::pixmap_create_from_xpm_d($tilewindow->window,null,$blankTile32by32xpm);