File: README

package info (click to toggle)
libkml 1.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,660 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 17
file content (29 lines) | stat: -rw-r--r-- 1,324 bytes parent folder | download | duplicates (8)
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
Support for PHP in SWIG is still under development. If you would like to use
the SWIG-generated PHP5 wrapper file, you will first have to run our
tweak_generated_kmldom.php script. This will copy the generated kmldom.php
script from the build directory and apply two necessary fixes:
- namespace issues
- "empty" is a reserved keyword in PHP. SWIG will attempt to use this in
  its wrapping of the std::vector class. We rename it to _empty(). If you
  want to call it in your application, you must use $foo->_empty();
See the tweak script for more details.

TODO: we may remove raw vectors from the API.

PHP 5 (since 5.2.5 ) does not permit module extensions to be loaded from paths
that contain directory names (see PHP bug 44037:
http://bugs.php.net/bug.php?id=44037 ). This means that you can't use any
path-munging hacks to execute extensions in local directories.

To run these examples, you should copy the kmldom extension module to your
PHP extension directory. You can discover what your extension directory is by
executing this command in a terminal:
php-config --extension-dir

The extension module is built under the main project build directory:
../../build/php/kmldom

Be sure the the extension is world-readable before you copy.

(An alternative is to supply a custom extension directory via your php.ini.)