Page MenuHomePhabricator

Warning: trim() expects parameter 1 to be string, array given in OggHandler.php on line 116
Closed, ResolvedPublic

Description

Warning: trim() expects parameter 1 to be string, array given in /usr/local/apache/common-local/php-1.24wmf8/extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php on line 116


Version: unspecified
Severity: normal

Details

Reference
bz66448

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:16 AM
bzimport set Reference to bz66448.
bzimport added a subscriber: Unknown Object (MLST).
			foreach( $stream['comments'] as $name => $value ) {
				$trimmedValue = trim( $value );
				if ( $trimmedValue === '' ) {
					continue;
				}

Did we start allowing/passing/parsing in arrays at some point?

I guess it needs special handling

Change 140641 had a related patch set uploaded by Brian Wolff:
Handle double tags properly (fix php warning about trim())

https://gerrit.wikimedia.org/r/140641

Change 140641 merged by jenkins-bot:
Handle double tags properly (fix php warning about trim())

https://gerrit.wikimedia.org/r/140641

Patch was merged, so assuming bug is fixed.

Please re-open if that's not the case.