-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME_ORIG
66 lines (43 loc) · 2.05 KB
/
README_ORIG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
amfext (native) 0.8.*
=====================
This extension implements the ActionScript Message Format
for encoding and decoding,both in AMF and AMF3 versions.
Information can be found in [0].
This extension provides two low level functions useful for
encoding and decoding objects into AMF format, but it does
not provide functions for managing the full message. An
example of implementation can be found in [1].
Details on the encoding process can be read in doc/encoding.txt
Documentation on the PHP function and the callbacks is in doc/amfextdoc.php
Constants for the flags that can be used in the encoding/decoding are in amfext.php
that can be included.
The directory tests contains some tests that can be invoked directly. Eventually drop AMFPHP
sources somewhere for testing the PHP version against the C version. See test_common.php for
details.
Building
-------------
Under Windows: download the source of your PHP version and unpack the zip under the
ext directory of the source. Open the associated Visual Studio project (amf4.dsp or amf5.dsp)
and just build. Everything should be fine. For distributing the extension is suggested to use
Visual Studio 6, otherwise 2003 is fine.
Under Uni*/Linux: obtain your php-devel package and unpack the zip in a directory. Then
as any PHP extension perform:
phpize
./configure --enable-amf
make install
Note: there could be some little problems if php includes are not under /usr
In any case remember to add the amf.so/php_amf.dll extension to the php.ini file
Known Builds
--------------
This code has been tested under Windows (PHP 4.4.0, 5.2.0) and Fedora (PHP 4.1.6) under a 32 bit machine.
Please check the behaviour with 64-bit machine
Thanks
---------------
Thanks to Patrick Mineault from AMF for the support, and from the authors
of the JSON PHP extension for the skeleton of the project.
Authors
-------
Emanuele Ruffaldi <[email protected]>
---
[0] http://osflash.org/doku.php?id=amf
[1] http://amfphp.sourceforge.net/