com gtk/php-gtk: s/return/construct exception: ext/gtk+/gtk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    72ba5a077e63319f649abbfa14bebfd30db50e5e
Author:    Steph Fox <[email protected]>         Wed, 21 Jun 2006 19:51:10 +0000
Parents:   c48218f093e26ddefbcb4acdfce8d0461c5d5981
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=72ba5a077e63319f649abbfa14bebfd30db50e5e

Log:
s/return/construct exception

Changed paths:
  M  ext/gtk+/gtk.overrides


Diff:
72ba5a077e63319f649abbfa14bebfd30db50e5e
diff --git a/ext/gtk+/gtk.overrides b/ext/gtk+/gtk.overrides
index 6493263..c98a174 100644
--- a/ext/gtk+/gtk.overrides
+++ b/ext/gtk+/gtk.overrides
@@ -1807,7 +1807,7 @@ PHP_METHOD
 	GObject *wrapped_obj;
 
     if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|ui", &text, &free_text, &max)) {
-        return;
+        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkEntry);
     }
 
     wrapped_obj = (GObject *)g_object_new(phpg_gtype_from_zval(this_ptr),
@@ -3030,7 +3030,7 @@ PHP_METHOD
     GObject *wrapped_obj = NULL;
 
     if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i|O", &socket_id, &display))
-        return;
+        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkPlug);
 
     wrapped_obj = g_object_new(phpg_gtype_from_zval(this_ptr), NULL);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.