Re: [PHP-DEV] array position isfirst / islast / valid ?

2010-01-03 Thread Oskar Eisemuth
then a key() call. Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] array position isfirst / islast / valid ?

2010-01-02 Thread Oskar Eisemuth
, as the internals already know this. To get an array_valid_position or array_pos_isvalid wouldn't be bad either. So would it possible to introduce: array_pos_isfirst( $array) array_pos_islast( $array) array_pos_isvalid( $array) Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development

[PHP-DEV] Re: SQLite Bug 42589 still not fixed in php 5.3 windows (attached fix with ATTR_FETCH_TABLE_NAMES support)

2009-08-10 Thread Oskar Eisemuth
Hello Attached is a patch that adds the necessary changes at config.w32 and additional support for PDO::ATTR_FETCH_TABLE_NAMES in PDO SQLite. --- Oskar Index: ext/pdo_sqlite/config.w32 === --- ext/pdo_sqlite/config.w32

Re: [PHP-DEV] Re: SQLite Bug 42589 still not fixed in php 5.3 windows (attached fix with ATTR_FETCH_TABLE_NAMES support)

2009-08-10 Thread Oskar Eisemuth
there), so I added 49206 as feature request now. Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] SQLite Bug 42589 still not fixed in php 5.3 windows

2009-08-09 Thread Oskar Eisemuth
in phpinfo? So SQLITE_ENABLE_COLUMN_METADATA would be shown as activated/enabled/disabled? Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Weak references - object destruction callback?

2009-08-02 Thread Oskar Eisemuth
Hi I try to write a a weak reference extension for php5.3 to break circular object structures, so far I have a test implementation that seems to work fine with my first tests. My current system uses a new base class that returns a new resource via a getWeakRef method. This resource can be

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-24 Thread Oskar Eisemuth
); // Register Autoloader::onmyevent() as event listener. A reason I wrote SplObjectStorage won't solve my usage of spl_object_hash. So don't mark spl_object_hash deprecated in 5.4 ;-) Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] New function proposal: spl_object_id

2009-01-23 Thread Oskar Eisemuth
) { call_user_func_array($callable, array($eventData)); } } } } So spl_object_id would be a nice... Best regards Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PDO: table name of field in SQLite #42589 and a new fetch style FETCH_ASSOC_TREE

2009-01-06 Thread Oskar Eisemuth
and the PDO change could be done later. The script may decide to cache the map for later use too. Anyway applymap($objorarray, $map, $data) should really have a better name Best regards, Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

[PHP-DEV] PDO: table name of field in SQLite #42589 and a new fetch style FETCH_ASSOC_TREE

2009-01-03 Thread Oskar Eisemuth
the PDO drivers. (But could be optimized later to skip parts of ATTR_FETCH_TABLE_NAMES in the driver) So what do you think? -- Oskar Eisemuth -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php