ZF-12200: Zend_Http_UserAgentTest parse error on Windows

Issue Type: Patch Created: 2012-05-10T20:23:03.000+0000 Last Updated: 2012-05-17T21:16:30.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: Martin Hujer (mhujer) Assignee: Rob Allen (rob) Tags: - Zend_Http_UserAgent

  • FixForZF1.12

Related issues: Attachments: - UserAgentTest.php.patch


PHP 5.3.8, Windows 7 64bit, PHPUnit 3.4.15

<pre class="highlight">There were 2 errors:

1) Zend_Http_UserAgentTest::testDeviceClassNameMatchesDesktopTypeIfUserAgentDoesNotMatch
RuntimeException: Parse error: syntax error, unexpected $end in - on line 106

2) Zend_Http_UserAgentTest::testAllowsPassingStorageConfigurationOptions
RuntimeException: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in - on line 106

I suspect that it is caused by some issues with serialization, because they are set to runInSeparateProcess.

<pre class="highlight">
 * @runInSeparateProcess

They were added in r24694:

Author: matthew Date: 21. 3. 2012 23:09:32 Message: Removed WURFL UserAgent adapter

I suggest removing them (in the patch), because tests pass when --stderr switch is used.


Posted by Rob Allen (rob) on 2012-05-17T21:16:30.000+0000

Patch applied in r24809. Thanks.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.