summaryrefslogtreecommitdiff
path: root/Examples/php
Commit message (Collapse)AuthorAgeFilesLines
* Fix php example comment typoOlly Betts2022-10-111-1/+1
|
* [PHP] Remove useless shadowed variable in exampleOlly Betts2022-02-031-1/+0
|
* Fix and restore disabled code in PHP value exampleOlly Betts2021-05-041-1/+1
|
* Don't generate a .php wrapper file by defaultOlly Betts2021-05-0416-32/+0
| | | | | | | | | | It's now only generated if something to put in it is specified via: %pragma(php) include=... or %pragma(php) code=...
* Fix PHP sync exampleOlly Betts2021-04-194-19/+19
| | | | Mostly it was missing `%include <std_string.i>`
* Adjust PHP sync exampleOlly Betts2021-04-183-15/+47
| | | | | | | | Make it work with how globals are actually wrapped. It looks like this example has never been right, but nobody noticed before PHP 8 started warning about the use of unset variables. This reveals that handling of std::string properties needs fixing.
* php: Test multiple return values in pointer exampleOlly Betts2021-03-312-10/+7
|
* Fix comment typoOlly Betts2021-03-311-1/+1
|
* php: Remove out-dated remark from funcptr exampleOlly Betts2021-03-261-1/+0
| | | | | The function pointers are wrapped as resources not "swig style string pointers".
* php: Use qualified constant names in funcptr exampleOlly Betts2021-03-261-6/+6
|
* php: Omit closing ?> in manual and examplesOlly Betts2021-03-2318-42/+0
| | | | | PSR-12 says "The closing ?> tag MUST be omitted from files containing only PHP".
* Fix php pragmas example include pathWilliam S Fulton2019-05-093-4/+7
| | | | Was not working for out of source builds
* Fix php pragmas exampleWilliam S Fulton2019-04-301-1/+1
| | | | . is not always in the include_path by default
* [php] Eliminate use of unset constants in exampleOlly Betts2019-02-081-9/+5
| | | | | | | This generates a warning with PHP 7.3 which apparently will become an error in the future. We're just checking that a constant that should not be define indeed isn't, which we can achieve more cleanly using get_defined_constants() instead.
* Misc. typosluz.paz2018-05-171-2/+2
| | | found via `codespell` and `grep`
* Remove -noproxy support in the Examples of PHP7Nihal2017-06-274-21/+21
|
* Fix indentation in PHP7 and PHP5 variables exampleNihal2017-06-261-2/+2
|
* Add documentation and examples for php version pragma.Nihal2017-05-082-0/+2
| | | | | Pragma version to specify versions for PHP5 and PHP7 extensions. See issue #360.
* Remove 'static' targets from PHP examplesOlly Betts2016-11-3017-100/+0
| | | | | | The machinery these targets need to work no longer exists, and as far as I can make out was removed before the code was put under version control.
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-2117-51/+102
| | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
* Remove unused std_string.i from callback examplesWilliam S Fulton2015-05-101-2/+0
|
* Eliminate trivial differences between the reference examplesOlly Betts2014-11-072-11/+3
|
* Remove bogus ; after } in examplesOlly Betts2014-11-073-11/+11
|
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-246-11/+11
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-1117-68/+68
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* Whitespace cleanup of Example MakefilesKarl Wette2014-04-162-2/+2
|
* Further cleaning up of class examplesOlly Betts2014-02-241-1/+0
|
* Improve the class example for several languages.Olly Betts2014-02-233-29/+14
| | | | | Fix numerous inaccuracies in index.html (where it exists) and eliminate unnecessary differences between the example code being wrapped.
* Fix crash in php exampleWilliam S Fulton2014-02-151-1/+1
| | | | Declaration and definition of the add function were different
* Remove executable bit from various test-suite runme filesOlly Betts2014-01-062-0/+0
|
* Fix Examples/php/pointer to work with PHP 5.5Miklos Vajna2013-12-121-1/+1
| | | | With this, all examples work with PHP 5.5 for me.
* Fix gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* PHP examples makefiles clean target fixed and use RUNPIPE and tidyupWilliam S Fulton2013-04-1917-119/+102
|
* Update lingering configure.in references to say configure.acOlly Betts2013-03-211-1/+1
|
* Make php example C90 compliantWilliam S Fulton2012-12-153-5/+14
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove runtime warnings in overloading php exampleWilliam S Fulton2011-02-011-4/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [PHP] Fix handling of OUTPUT typemaps (Patch from Ryan in SF#3058394).Olly Betts2010-09-081-12/+14
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove PHP4 hangoverOlly Betts2010-06-011-80/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove PHP4 hangover.Olly Betts2010-06-011-79/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix to work with PHP5 wrappersOlly Betts2010-05-251-3/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix to work with PHP5 wrappers.Olly Betts2010-05-251-2/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix to work with PHP5 wrappersOlly Betts2010-05-251-4/+4
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix typo in literal string.Olly Betts2009-12-151-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add callback and extend; fix error in alphabetical ordering.Olly Betts2009-08-171-1/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Rename back - William wants this consistent across all the languages and it'sOlly Betts2009-08-176-0/+0
| | | | | | | too much work to test a global renaming. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Explain the poor name.Olly Betts2009-08-171-1/+5
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove bogus stuff about memory leaks - nothing in this testcase leaks.Olly Betts2009-08-172-36/+8
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Rename the "extend" example to "directors" as it tests directors not %extend.Olly Betts2009-08-176-0/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Convert to use proxy classes.Olly Betts2009-08-175-28/+25
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [PHP] Update the PHP "class" example to work with PHP5 and useOlly Betts2009-08-142-22/+18
| | | | | | | modern wrapping features. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11565 626c5289-ae23-0410-ae9c-e8d60b6d4f22