Re: GdkFunction enums don't work in php

From: Date: Tue, 18 Jul 2006 14:54:44 +0000
Subject: Re: GdkFunction enums don't work in php
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3327@lists.php.net to get a copy of this message
Christian Weiske wrote:
That makes absolutely no sense. Test script?
echo Gdk::OR;
PHP Parse error: syntax error, unexpected T_LOGICAL_OR, expecting T_STRING or T_VARIABLE or '$' in php shell code on line 1
It makes sense to me. OR and XOR are PHP keywords. To access them you can use the constant() function: constant('Gdk::OR'); -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com

« previous php.gtk.dev (#3327) next »