[
https://issues.apache.org/jira/browse/AVRO-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-627:
------------------------------
Assignee: Michael Glaesemann
Fix Version/s: 1.4.0
Component/s: php
This looks great!
I installed phpunit on Ubuntu 10.04 and was able to run tests.
We should also update the top-level README.txt, listing PHP requirements.
Tests however failed with:
{code}
There were 2 failures:
1) SchemaTest::test_parse with data set #38 (SchemaExample)
schema_string:
{"type": "array",
"items": {"type": "enum", "name": "Test", "symbols": ["A", "B"]}}
Sub-schema for AvroArraySchema not a valid Avro schema. Bad schema: Array
(
[type] => enum
[name] => Test
[symbols] => Array
(
[0] => A
[1] => B
)
)
Failed asserting that <boolean:true> is false.
/home/cutting/src/avro/trunk/lang/php/test/SchemaTest.php:459
2) SchemaTest::test_parse with data set #40 (SchemaExample)
schema_string:
{"type": "map",
"values": {"type": "enum", "name": "Test", "symbols": ["A", "B"]}}
Sub-schema for AvroMapSchema not a valid Avro schema. Bad schema: Array
(
[type] => enum
[name] => Test
[symbols] => Array
(
[0] => A
[1] => B
)
)
Failed asserting that <boolean:true> is false.
/home/cutting/src/avro/trunk/lang/php/test/SchemaTest.php:459
FAILURES!
Tests: 189, Assertions: 261, Failures: 2, Errors: 89, Incomplete: 3.
{code}
Any idea what this could be?
It'd be great to include this in 1.4.0, which I hope to get out in the next few
days.
> Add PHP Avro library
> --------------------
>
> Key: AVRO-627
> URL: https://issues.apache.org/jira/browse/AVRO-627
> Project: Avro
> Issue Type: New Feature
> Components: php
> Reporter: Michael Glaesemann
> Assignee: Michael Glaesemann
> Fix For: 1.4.0
>
> Attachments: AVRO-627.patch.zip
>
>
> I've developed a PHP library for Avro against the Avro 1.3.3 spec as part
> of using Avro at myYearbook.com. It's based on the Python and Ruby
> libraries. Current functionality includes schema parsing, Avro data file and
> string IO.
> Known issues:
> - Support for field defaults is incomplete.
> - Lacks RPC and protocol support, JSON encoding, and deflate codec.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.