I've run into the same thing with PHP-GTK. While Zend engine itself
may check for existence of handler, PHP code does not.
-Andrei
On Jan 27, 2006, at 8:47 AM, Rob Richards wrote:
Is it required that the get_properties handler be implemented for
an object?
In the source there are places
Yep correct. We always prefer to also check p->h so that we minimize
the chances for reaching the memcmp()...
At 04:33 PM 1/29/2006, Sara Golemon wrote:
I wonder If I am completely missing the point, but the following piece
of code seems fishy to me:
ZEND_API int zend_hash_del_key_or_index(Has
I wonder If I am completely missing the point, but the following piece
of code seems fishy to me:
ZEND_API int zend_hash_del_key_or_index(HashTable *ht, char *arKey, uint
nKeyLength, ulong h, int flag)
{
uint nIndex;
Bucket *p;
...
while (p != NULL) {
i
Or could learn that [] creates arrays the same way that it is used to
access and assign pieces of arrays.
M.T.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Good Morning,
I wonder If I am completely missing the point, but the following piece
of code seems fishy to me:
ZEND_API int zend_hash_del_key_or_index(HashTable *ht, char *arKey, uint
nKeyLength, ulong h, int flag)
{
uint nIndex;
Bucket *p;
...
while (p != NULL)
Robert Deaton wrote:
On 1/29/06, James Crane <[EMAIL PROTECTED]> wrote:
Then why don't we have these:
$i = integer(5);
$f = float(4.5);
$s = string("foo");
Perhaps because any sane person will know without reading a manual,
that " delimits a string, a number without a decimal is an integer,
On 1/29/06, James Crane <[EMAIL PROTECTED]> wrote:
> Then why don't we have these:
>
> $i = integer(5);
> $f = float(4.5);
> $s = string("foo");
Perhaps because any sane person will know without reading a manual,
that " delimits a string, a number without a decimal is an integer,
and a number with
Developing the PHP runtime
Maintaining the documentation
Translating the documentation
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 29 Jan 2006, James Crane wrote:
> Of course, that woudln't make sense. We, instead, use appropriate syntax:
>
> class MyClass {
> public function method($arguments) {
>// method body here
> }
> }
>
> Suitable, logical, appropriate code. To me, 'array()' just seems on
> the verge of
Hello James,
you missed recently emerged $it = betty() here or did i get confused now?
Sunday, January 29, 2006, 9:21:20 PM, you wrote:
> Then why don't we have these:
> $i = integer(5);
> $f = float(4.5);
> $s = string("foo");
> And what about classes? It's slightly different, what with it
Then why don't we have these:
$i = integer(5);
$f = float(4.5);
$s = string("foo");
And what about classes? It's slightly different, what with it being a
definition rather than a specific literal value, but it produces a
definition, pseudo value if you will, so why not have:
class("MyClass", arr
On 1/29/06, James Crane <[EMAIL PROTECTED]> wrote:
>
> No, it's definitely not that hard to write, but I have seeing
> 'array()' everywhere when I know damn well that it's an array.
>
> Concerning the 'pass by reference' problems, I'm going to assume that
> that's happening when you're working with
No, it's definitely not that hard to write, but I have seeing
'array()' everywhere when I know damn well that it's an array.
Concerning the 'pass by reference' problems, I'm going to assume that
that's happening when you're working with some of the functions
already in PHP or someone else's code,
>My reasoning is that I want to be able to quickly, in a non-verbose,
intuitive way, create inline arrays which I >do a lot of in my applications.
Is it really that hard to do $x = array( "cat", "dog" "mouse")? I would say
this is very concise and intuitive, as the "array" word in there suggests
14 matches
Mail list logo