Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:php [2011-03-25 15:25] becki |
becki:linux:php [2018-01-30 09:02] (aktuell) becki [Solution] |
||
---|---|---|---|
Zeile 218: | Zeile 218: | ||
* Install the lib in ''/usr/local/lib/php/mystuff0''. This fulfills 1 and 2 | * Install the lib in ''/usr/local/lib/php/mystuff0''. This fulfills 1 and 2 | ||
* Make a symlink from a dir which is specified in the PHP ''include_path'' to the real lib, eg: ''/usr/lib/php/mystuff0 -> /usr/local/lib/php/mystuff0''. To find out what the ''include_path'' is, use ''phpinfo()''. This fulfills requirement #3 and #4 | * Make a symlink from a dir which is specified in the PHP ''include_path'' to the real lib, eg: ''/usr/lib/php/mystuff0 -> /usr/local/lib/php/mystuff0''. To find out what the ''include_path'' is, use ''phpinfo()''. This fulfills requirement #3 and #4 | ||
+ | |||
+ | <code php phpinfo.php> | ||
+ | <?php phpinfo(); ?> | ||
+ | </code> | ||
The number appendix specifies the API version of the lib. When the API of the lib changes, then the version number must be increased. This is the case when exported functions are removed, when their behavior changes or when the signature of the function changes. Note that adding more functions (or classes) to the lib do not break the API. | The number appendix specifies the API version of the lib. When the API of the lib changes, then the version number must be increased. This is the case when exported functions are removed, when their behavior changes or when the signature of the function changes. Note that adding more functions (or classes) to the lib do not break the API. |