45 Commits

Author SHA1 Message Date
Franco Fichtner
f88210b49e rc: if -devel package allow phar for unit testing 2016-09-21 08:19:14 +02:00
Franco Fichtner
bd66467db8 rc: do not clobber php.ini up front
PR: https://forum.opnsense.org/index.php?topic=3573.0
2016-09-02 08:29:40 +02:00
Franco Fichtner
706d2804e1 rc: scrub extensions.ini writing following a FreeBSD ports change
We don't have to do anything here anymore.  Since we started using
pkg(8) the extensions.ini was always consistent, but we needed to
make sure that the order is correct.  Some more cleverness was added
to no prevent other PHP modules from simply "plugging in", but since
they are not in one extensions.ini anymore it won't matter.

Expecting some splatter during upgrade, but hopefully also no more
php-suhosin clashes with php56-session not loaded.  :)
2016-08-17 07:51:24 +02:00
Franco Fichtner
556e6a4307 make: add `test' target wrapper
Whitelisting in Suhosin is needed to make this work, but
unfortunately this will disable whitelisting for all of
phar.  A pretty debatable design choice, but for now we
keep this on -devel until we know what to do...
2016-08-15 18:59:01 +02:00
Franco Fichtner
2e31042e43 rc: transition code for new-style extensions ordering 2016-08-12 07:51:16 +02:00
Franco Fichtner
1de9a183f1 mvc: apply larger memory limit here too; closes #1032 2016-06-21 19:17:22 +02:00
Franco Fichtner
809625fd9e pkg: sync dependencies between extensions.ini and pkg deps 2016-05-06 09:27:25 +02:00
Franco Fichtner
e5d57a43f4 Revert "php: remove ctype dependency; closes #917"
This reverts commit ed81dd30de0ca621c244540c35d965aa17ca41d7.
The state of digit validation is highly controversial.  I give
up.  :)
2016-04-28 21:50:35 +02:00
Franco Fichtner
3f8c0fea4e interfaces: port the last php module function, remove module
While this is a neat milestone, it becomes apparent how convuluted
the code path and interface info polling is.  Looking at it, the
whole interface layer can probably make performance jumps to at least
twice the read or reconfigure speed...
2016-04-28 21:38:55 +02:00
Franco Fichtner
6e5fbbc9aa php: bcmath was used for pre-16.1 captive portal only 2016-04-28 09:40:42 +02:00
Franco Fichtner
ed81dd30de php: remove ctype dependency; closes #917
Needs a bit of observation, but as far as I can see the only difference
is that is_numeric() will also take int values and return true for them,
ctype_digit() will only return true for string values that have digits.
2016-04-28 09:35:20 +02:00
Franco Fichtner
1d0ae14682 php: scrub dependencies for #915 2016-04-27 10:42:19 +02:00
Franco Fichtner
877b317f45 firewall: fix alias truncation (up to 5k only)
PR: https://forum.opnsense.org/index.php?topic=2517.0
2016-03-23 17:16:23 +01:00
Franco Fichtner
0086548dc4 rc: fixup extensions.ini permission
PR: https://forum.opnsense.org/index.php?topic=2090
2016-01-29 07:00:45 +01:00
Franco Fichtner
29dc0b5e4d rc: improve the php config write
o Don't clobber manually installed extensions
o Remove the XDebug enable in favour of an autoload if available
o No longer install XDebug by default

Adds long overdue copyrights, been handling this file since 2014.
2016-01-22 08:30:43 +01:00
Franco Fichtner
cf7b3c1157 pkg: remove tokenizer, was used for style checker
The style checking is done in the build system, so there's no need
to keep this here.  A more dynamic way needs to be devised at some
point that allows plugging PHP modules into the code, but it's not
overly important.

Suggested by: @fabianfrz
2016-01-13 06:52:23 +01:00
Franco Fichtner
59a229c38a php: fire in the hole! 2016-01-11 18:36:46 +01:00
Franco Fichtner
3da643e044 php: remove obsolete mbstring module
This module was used in the old XMLRPC client code, but is no longer
needed.  Removal was escalated by FreeBSD when the oniguruma4 dependency
of the php56-mbstring module was marked BROKEN.
2015-12-13 11:37:43 +01:00
Ad Schellevis
3ec8474d97 (php, suhosin) accept larger post input variables, needed to support new captiveportal file upload message 2015-10-18 15:53:42 +00:00
Ad Schellevis
2da831052c oops, this wasn't supposed to be in the commit 2015-07-08 16:03:28 +00:00
Ad Schellevis
c0cc76263c (legacy) cleanups related to pfsense-utils.inc (remove unused, move single usage, isset issues) 2015-07-08 15:48:16 +00:00
Franco Fichtner
8b05e4bb6c captive portal: remove include files from web directory
radius.inc includes both radius_accounting.inc and radius_authentication.inc,
but lives in /usr/local/etc/inc, which makes an extra include path and the
desired code separation a bit pointless.
2015-06-28 10:32:41 +02:00
Franco Fichtner
9166342021 pkg: move package remnants out of obsolete dir 2015-06-26 11:18:10 +02:00
Franco Fichtner
94ec1de54a src: no hay pcntl 2015-06-01 07:55:41 +02:00
Franco Fichtner
3256e66d4b rc: a bit more pruning; we know what we are doing! 2015-05-31 21:13:19 +02:00
Franco Fichtner
a173ea37bd rc: push PHP extensions to extensions.ini, which...
is also used by the ports to register the modules, which may
finally fix the spurious module load errors.
2015-05-31 20:56:48 +02:00
Ad Schellevis
1ffc66153b (xdebug) fix xdebug configuration issue 2015-05-29 17:33:25 +00:00
Franco Fichtner
adf5f0eff9 rc: remove unused pecl package 2015-05-15 09:05:22 +02:00
Franco Fichtner
c98b514ee6 src: whitespace sweep 2015-05-05 21:35:26 +02:00
Ad Schellevis
7953e21f0c add XDebug support switch and debugger for development
When using webgrind, use the optional graphviz package for callgraph support
2015-05-05 14:32:57 +00:00
Ad Schellevis
ab507101ed prepare for new mvc framework, we use two different document roots in our new setup to separate legacy and new code. 2015-05-01 11:56:32 +00:00
Franco Fichtner
f6c6889d74 php: annoy Jos and Ad by enabling warnings by default...
... when using the core.git mount hook.  :)

Does not affect the packages/images.
2015-04-01 11:54:14 +02:00
Franco Fichtner
241ed34a2c php: alright, dom extention is needed 2015-04-01 10:11:31 +02:00
Franco Fichtner
4d00208b87 php: dom and libxml extensions are embedded 2015-04-01 09:41:42 +02:00
Franco Fichtner
410a8bc518 src: remove the need for PHP's posix extension 2015-04-01 09:36:25 +02:00
Franco Fichtner
3bb1d29e9f inc: remove unused shmop plugin usage 2015-04-01 09:18:33 +02:00
Franco Fichtner
9120b96675 globals: zap more unused or obsolete glue 2015-03-24 17:34:46 +01:00
Ad Schellevis
052e38cd2b move contrib php package into own directory 2015-03-24 13:10:35 +00:00
Franco Fichtner
c94b5c6da9 rc: change PHP error reporting a bit more
* We can now see the errors we suppress.  E_WARNING is the one that
  should be zapped as soon as possible.

* According to the manual, display_startup_errors should not be enabled.

* Add ignore_repeated_errors to avoid multiple reports in e.g. loops.
2015-03-03 09:42:20 +00:00
Franco Fichtner
fd370c5712 crash_reporter: tweak the error reporting
* add E_PARSE to show proper info about parse errors
* remove PHP 5.5 support, we've never shipped it
* fix textarea display width and disable send button
2015-03-03 07:21:25 +00:00
Franco Fichtner
58899e5598 src: prune unused xmlreader/xmlwriter code 2015-03-02 09:15:44 +01:00
Franco Fichtner
a1f66881da rc: apply harmless whitespace changes 2014-12-28 20:19:53 +01:00
Franco Fichtner
6001cb9a17 php: tokenizer plugin is required for style checker 2014-12-28 10:26:38 +01:00
Franco Fichtner
23f0e05767 php: adapt for pear packages 2014-12-28 10:16:41 +01:00
Franco Fichtner
727453c076 src: move all files (again)
Make "src" the implicit "/usr/local" so that nobody can
sneak in weird files in the base file system or potentially
overwrite them.

This is the last time, I swear...  :)
2014-12-10 16:42:39 +01:00