Opened 16 years ago
Closed 16 years ago
#16080 closed defect (bug) (fixed)
PHP4 Compat
| Reported by: | westi | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 3.1 |
| Component: | Warnings/Notices | Version: | 3.1 |
| Severity: | critical | Keywords: | needs-patch |
| Cc: | Focuses: |
Description (last modified by )
just installed a brand spanking new installation here: http://nicedoggie.net/testbed This is the error I get: *Parse error*: syntax error, unexpected '&', expecting T_VARIABLE or '$' in */home/misha/public_html/testbed/wp-includes/class-wp-admin-bar.php* on line *160*
Attachments (2)
Change History (8)
#2
@
16 years ago
- Summary PHP4 Compat: foreach with reference in admin bar class → PHP4 Compat
Another:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/content/w/h/e/wheat395/html/wordpress/wp-admin/includes/media.php on line 1479
Looks like we need to find our PHP4 testbeds this week :-)
#3
@
16 years ago
With regards to incompatible foreach issues, a grep only finds these two.
wpgrep foreach.*\&
./wp-admin/includes/media.php:1479:foreach ( $post_params as $param => & $val )
./wp-includes/class-wp-admin-bar.php:160: foreach( $menu as $id => &$menu_item ) {
Can probably check for parse errors across all files on a testbed for other things.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
PHP4 compat code