[wp-trac] [WordPress Trac] #20296: WP_Query implements Countable
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 26 09:26:27 UTC 2012
#20296: WP_Query implements Countable
-----------------------------+----------------------
Reporter: hakre | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch close |
-----------------------------+----------------------
Changes (by hakre):
* keywords: has-patch close reporter-feedback => has-patch close
Comment:
Replying to [comment:2 GaryJ]:
> Although in the default compilation since PHP 5.0, until PHP 5.3 PHP can
be compiled without the SPL, so it's not guaranteed to have the interface
always present. I suspect that referencing a non-defined interface would
cause a fatal error for those (few) that don't have the SPL compiled in
PHP.
There is more in PHP that can be disabled which will break Wordpress even
the minimum requirements don't show that picture. So generally this would
need a review whether or not PHP is commonly compiled without the SPL.
That is commonly not the case, the SPL is available everywhere by default
and it's safe to expect it that way.
Replying to [comment:3 johnbillion]:
> Similarly to #20297, what is the use case for this?
The usage is obvious I'd say. See [http://php.net/Countable PHP Manual]
for details of the interface.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20296#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list