Opened 3 years ago
Closed 3 years ago
#13410 closed defect (bug) (fixed)
Wordpress 3.0 beta 2 and php 4.4
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 3.0 |
| Component: | Canonical | Version: | 3.0 |
| Severity: | normal | Keywords: | php4-compat |
| Cc: | dd32, markjaquith |
Description
I've installed wordpress 3.0 beta 2 and I've this problem
Warning: in_array() [function.in-array]: Wrong datatype for first argument in /usr/local/share/doc/vhost/pivari.com/httpdocs/wp-includes/canonical.php on line 180
We discussed the problem in the forum
http://wordpress.org/support/topic/397686
and we think the problem is for php 4.
I've php 4.4
Fabrizio
Change History (5)
- Cc dd32 markjaquith added
- Component changed from General to Canonical
- Keywords needs-patch php4-compat added
- Owner set to markjaquith
- Priority changed from normal to high
That is correct, PHP4 does not handle objects as needles for in_array.
- Keywords needs-patch removed
That should hopefully make this code PHP4 compatible.
Please test with the next nightly build (3.0-beta2-14697) and report back :-)
Note: See
TracTickets for help on using
tickets.

Thanks for reporting this.
I think this may be that in PHP4 in_array() does not support having an Object as the $needle.
We need to look for a fix for this.
Introduce in [13781] for #11907