Skip to content
Open

php7 #150

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
87d6bcf
scripts to build rpm packages - initial build
Jan 19, 2021
90d64a8
set of various problems solved
Jan 19, 2021
c5cc67e
bad assign by referencje for object removed from Auth module
Jan 25, 2021
e817653
ajax_test_wccl syntax error
seweryn626 Jan 29, 2021
9725722
Merge branch 'ajax_diagnostic_error' into HEAD
seweryn626 Jan 29, 2021
98ae7e3
/var/lib/inforex dir added to rpm, some correct to error solving
Feb 1, 2021
aaadf32
final rpm cut, solving selinux context problem
Feb 17, 2021
ad643c4
added composer.lock to .gitignore
seweryn626 Feb 27, 2021
768cdc7
eliminated ZERO DATE from initial db structure
seweryn626 Feb 27, 2021
d6c7571
DEFINER lines for unexistent DB user removed
seweryn626 Feb 27, 2021
c22c2b9
DB initialization sql_mode hint is no longer needed
seweryn626 Feb 27, 2021
636a181
delete database/update load files for gwp database - no longer needed
seweryn626 Mar 2, 2021
e4f459e
another unused query files removed and moved to documentations
seweryn626 Mar 2, 2021
7ce8c85
actualize files in TARITIFEXISTS
seweryn626 Mar 6, 2021
1e571bd
Merge branch 'rpm' into php7
seweryn626 Mar 6, 2021
48b1976
rw rights to templetes_c dir in rpm package
seweryn626 Mar 6, 2021
075a43e
deprecated preg_replace in Smarty class
seweryn626 Mar 6, 2021
c4b5765
quota missing in string constant
seweryn626 Mar 6, 2021
5f34e95
nonexistent index in templates generate warnings
Mar 8, 2021
61f6034
missing static properties in Config added
Mar 8, 2021
5df1ee3
unexistent variables in CInforexWeb generate warnings
Mar 8, 2021
92447df
unexistent index tested
Mar 8, 2021
e2dc114
missing login data displayed in template
Mar 8, 2021
242cda1
unset indexes tested in templates
Mar 8, 2021
19284c0
Config reingeenering allowed set non existens parameters
Mar 8, 2021
2b61f7e
test environment to two constructors problem
Mar 9, 2021
23a191f
bypass double constructor problem in PHP 5.x
Mar 9, 2021
f0165b7
some potentially nonexistent variables
Mar 9, 2021
5b483da
all local db calls realize via mysqli
Mar 10, 2021
2ff5822
empty argument parseCli
Mar 10, 2021
ecced91
empty argument parseCli
Mar 10, 2021
21bcfd1
Merge branch 'php7' of https://github.com/CLARIN-PL/Inforex into php7
Mar 11, 2021
6208e7d
null object as local config
Mar 11, 2021
9ba26d9
selinux removes former settings in rpm build
seweryn626 Mar 12, 2021
33cdd85
dockerfile configured to php7.3
seweryn626 Mar 13, 2021
2343b39
check using mysql driver on PHP7 -> exception
seweryn626 Mar 13, 2021
25c0442
docker local config file upgraded
seweryn626 Mar 13, 2021
5e87c47
strict errors in PHP7 environment
seweryn626 Mar 13, 2021
915e03f
reference of new operator is now disabled
seweryn626 Mar 13, 2021
b96df7e
next corrections for work in php7 environment
seweryn626 Mar 16, 2021
48ed9db
all errors are catchable by handlers
Mar 20, 2021
410a27d
tunning of redirection in error handlers
Mar 20, 2021
9dea7c5
all w/o last_errors() on PHP5
Mar 20, 2021
d641ac7
advanced to PHP 7.4 docker image
seweryn626 Mar 22, 2021
9e4250c
specialized exceptions
Mar 30, 2021
cc637b3
excluding from test suite
Mar 30, 2021
bcc9ff2
handler backported to PHP5
Mar 31, 2021
85197a8
operator [] on empty string is an error now
seweryn626 Jun 12, 2021
3897bdd
Unproper static call to unstatic method set_users_roles - ugly soluti…
seweryn626 Jun 12, 2021
ecae8d8
Unproper static call to unstatic method set_users_roles - more clearl…
seweryn626 Jun 12, 2021
75fd254
literal smarty tags removed from document browser
seweryn626 Jun 16, 2021
4f15a26
fixed small errors to get access to perspectives
Jun 17, 2021
b1a490b
correct some potential errors about mixing smarty comments with literal
seweryn626 Jun 19, 2021
d3bbaac
unquoting literal in template of corpus settings
seweryn626 Jun 19, 2021
dcceafc
bad screename error in page header solved
seweryn626 Jun 22, 2021
0caed9e
improving rpm package building - version management
seweryn626 Jun 24, 2021
3787e16
solve Auth library error
seweryn626 Jul 27, 2021
51a52cb
move corpus loading after set clarin user procedure
seweryn626 Jul 27, 2021
a206fd3
external curl request separation
seweryn626 Aug 12, 2021
539c35a
revKey when no git
Oct 14, 2021
4f3322b
missing slash added in local config name
Oct 14, 2021
51a39b8
reduce html code sending size for page_report_preview
Dec 1, 2021
4da86e7
limit count of types displayed in preview tree of types
Dec 7, 2021
6bdbfb0
too many </div> in footer of page
Dec 11, 2021
8742343
Merge branch 'Smarty3_internal_names_fix' of [email protected]:CLARIN-PL…
Dec 16, 2021
a7b0a6f
Merge branch 'template_types' of [email protected]:CLARIN-PL/Inforex.git…
Dec 16, 2021
e224707
Merge branch 'types_limit' of [email protected]:CLARIN-PL/Inforex.git in…
Dec 16, 2021
aa00599
docker configuration tuning
Dec 17, 2021
9f03b3d
remove not opened /optgroup tags
Dec 18, 2021
7770261
throwing out internal Smarty variables, not supported in 3+ versions
Dec 20, 2021
3b2cae6
fatal errors should be logged as default
Dec 31, 2021
13e81cc
raise http request header limit as in docker branch
Jan 15, 2022
afaedfa
extract function dummyMessage4User
Mar 9, 2022
94c36b8
remove html tags from fatal error message on console
Mar 10, 2022
424098d
remove apt-utils from docker config, cause interactive problems
Mar 12, 2022
d733247
implementing changes from docker branch - docker_config_fix
Mar 16, 2022
3b1a37f
FirePHP update to version supported by php7
Mar 17, 2022
8dfe64e
test if logged before get user_id
Mar 17, 2022
1c7f6f7
FirePHP module included only in developement environment
Mar 18, 2022
b367d37
missing default config state insertSentenceTags
Mar 26, 2022
bd54067
main catch service should be smarter
Mar 26, 2022
dbb1762
move exception service to static class
Mar 28, 2022
96069e6
error to exception smart conversion
Apr 1, 2022
3d14ce1
error to exception smart conversion
Apr 1, 2022
c0ce5b2
test uninitiated variables
Apr 1, 2022
25d7ee0
improve _fatalog_ for nested call
Apr 1, 2022
7088609
full debugging getRelationTypesOfSet
Apr 1, 2022
2e7e530
Merge commit '25d7ee09' into exceptions_tests
Apr 1, 2022
431d43e
sql query fix based on docker branch
Apr 2, 2022
b596c95
Merge branch 'exceptions_tests' into document_agreement_relation_hangs
Apr 2, 2022
855358e
ErrorService new implementation
Apr 2, 2022
5e33d37
throwFatalError method for testing error service
Apr 6, 2022
a65b0d6
test and final error handlers tunning
Apr 7, 2022
e17c043
Merge branch 'docker-dev' into php7
Apr 13, 2022
f334189
Merge pull request #116 from CLARIN-PL/php7
tnaskret Apr 13, 2022
3623243
initial DB content for db docker container should be in init subdirec…
Apr 14, 2022
7c9ec22
unproper user gpw in db system
Apr 14, 2022
0a69eff
remove SQL SECURITY DEFINER forced root only to load dump to DB
Apr 14, 2022
3ba87f5
string 0000-00-00 00:00:00 is not valid for timestamp field initializ…
Apr 14, 2022
c25abc3
mysqli driver should be used as default now
Apr 15, 2022
5b3a8d3
const for threshold of count types restored
Apr 15, 2022
18e158e
fix: after merge
Apr 21, 2022
75d1dc2
Merge pull request #132 from CLARIN-PL/merge_error_fix
tnaskret Apr 21, 2022
3c803f6
Merge pull request #133 from CLARIN-PL/fix/php7-merge-error
tnaskret Apr 21, 2022
8e5db18
doc: moving file out from init
Apr 21, 2022
1f22fea
fix: loading2
Apr 22, 2022
9b3e3e7
fix: mix content over http
Apr 22, 2022
8dbfb07
manually implementing fixes from docker branch
Apr 23, 2022
8b8cb5c
agreement changes from template_types and type_limit branches
May 7, 2022
69d7607
bad namespaces in Config class and proper changes agreed
May 9, 2022
2023938
some database interface improvements
May 11, 2022
81cf35c
fix: remove PHPUnit from settings
May 13, 2022
0d6aa8c
missing opt parse added
May 17, 2022
bef82d5
change order of include and settings
May 17, 2022
d37d9b7
local scripts corrections
May 17, 2022
5a3f7a1
double LoadRequest loader removed
May 17, 2022
f2806aa
Merge pull request #136 from CLARIN-PL/merge_error_fix
tnaskret May 18, 2022
fbc4c49
fix: removed left closing tag
May 19, 2022
10fd224
missing quotas in callback function name intval
Jun 27, 2022
96f56d9
extracting annotation loader to external multiusing script
Jun 28, 2022
5d20b93
Merge pull request #138 from CLARIN-PL/an_tree_visuality_fixed
tnaskret Jun 29, 2022
c6711df
fix: service adress http->https
Jul 13, 2022
2602007
move vendor dir outside classmap dirs
Sep 19, 2023
f28b626
extract FileWriter class for export
Sep 21, 2023
0ad37de
fix static call of nonstatic method - trouble in testing
Sep 23, 2023
439281b
unit tests for conll i json export
Sep 26, 2023
e49806f
unit tests with tokens, annotations, relations, lemmas and attributes
Oct 4, 2023
15a5e71
mocked all Ccl input clases for tests
Oct 7, 2023
0f56fd7
export unit tests for elementary Ccl elements
Oct 9, 2023
6da0801
unit test for export with relation
Oct 12, 2023
88eddcf
synchro with relation export startegy change
Oct 20, 2023
f209e0f
tests for lemmas and anntags exports
Oct 21, 2023
42aac8a
XML export output full tests
Oct 27, 2023
b43b39f
more tests and drop unused code
Oct 28, 2023
bcdb002
tests for token setAnnotation
Oct 31, 2023
723adf2
tests for .txt file generation
Nov 8, 2023
614d2ed
extract method for .txt file generation
Nov 13, 2023
7428fbc
extract method for .txt file generation
Nov 14, 2023
58dd9ce
extract lemma checker
Nov 14, 2023
5ef619b
extract relations checker
Nov 15, 2023
8b3f77c
extract method for unique sorting annotations array
Nov 15, 2023
b2c0129
extract method for dispatch elements table
Nov 15, 2023
7c0e502
extract method for generateCcl for export
Nov 16, 2023
656c947
extract updateExtractorStats method
Nov 16, 2023
ba0de59
extract runExtractor method
Nov 16, 2023
fabaf83
more reflection methods in tests
Nov 27, 2023
66f9400
decomposition CclStruct.php to class files
Nov 28, 2023
5fd2b2f
duplicate tokens in test ccl on main level & on tree inside
Nov 30, 2023
c9ec2e0
test lemma in XML with emulated Ccl
Dec 1, 2023
a1402d7
all modules real test for XML export
Dec 1, 2023
eb080ec
remove not really used ExportManager class
Dec 7, 2023
e0f8a9e
Change CclFactory with extended ccl version
Dec 7, 2023
92e9c02
minor warnings that crashed execution
Dec 7, 2023
6c5e9b5
missing name field in DB annotation data changed to type
Dec 9, 2023
b3149a7
correct read from DB obscured by attr user annotation user_id data
Dec 9, 2023
baa9a43
fix tags export
Dec 11, 2023
c1c3a80
in custom export value annotation field is not obligatory
Dec 11, 2023
9944b9a
subcorpora_id in record may be NULL
Dec 11, 2023
293722a
fix usage of unexisting in DB fields
Dec 14, 2023
0b6ab59
getReport call twice in document_export - one call removed
Dec 16, 2023
62a6d4b
change behavior of export lemma from annotation records
Dec 16, 2023
8311b93
add lemmas param do JSON generate method
Dec 18, 2023
753d4df
no lemma export if coresponding annotations doesn't exists
Dec 18, 2023
2ce1052
checking subsets lemma or attributes, forces annotation column check …
Dec 22, 2023
e73a23e
backward changes from docker branch
Dec 22, 2023
83a9d24
backward changes from lemat_export_unification branch
Dec 22, 2023
d3d1ef1
merging bugs fixed
Dec 27, 2023
e89e084
backward changes from docker-dev branch
Dec 27, 2023
f8b66e8
fix duplicate constructor name
Dec 27, 2023
efb7004
fix merging
Dec 27, 2023
db2bdba
describe HtmlParser2 problem with HTML comments recognize
Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
engine/templates_c/*
engine/include/vendor
vendor
config/config.local.php
docker/www/config/config.local.php
secured_data/ccls
Expand Down
11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"config": {
"platform": {"php":"5.6"},
"vendor-dir": "engine/include/vendor"
},

"autoload": {
Expand All @@ -17,7 +15,7 @@
"classmap": [
"engine/external/pear/",
"engine/include/",
"engine/config/",
"engine/Config/",
"engine/page/",
"engine/external/ChromePhp.php",
"phpunit/classes"
Expand All @@ -43,12 +41,11 @@
},
"require": {
"ext-json": "*",
"ext-zip": "*",
"ext-gd": "*"
"ext-zip": "*"
},
"require-dev": {
"phpunit/phpunit": "4.8.",
"phpunit/dbunit": "1.4.*",
"firephp/firephp-core": "^0.5.3",
"phpunit/phpunit": "^4.8",
"mikey179/vfsstream": "^1.6"
}
}
4 changes: 4 additions & 0 deletions database/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Database Initialization
Before you start first time database docker move inforex-v1.0.sql to init/ folder

File removed form init/ folder to prevent accidental initialization.
5 changes: 1 addition & 4 deletions database/init/inforex-v1.0.sql → database/inforex-v1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ DROP TABLE IF EXISTS `tasks`;
CREATE TABLE `tasks` (
`task_id` int(11) NOT NULL AUTO_INCREMENT,
`datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Data i czas utworzenia zadania.',
`datetime_start` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`datetime_start` timestamp NULL DEFAULT NULL,
`type` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Identyfikator zadania.',
`description` text COLLATE utf8mb4_unicode_ci,
`parameters` text COLLATE utf8mb4_unicode_ci NOT NULL,
Expand Down Expand Up @@ -1988,7 +1988,6 @@ UNLOCK TABLES;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`gpw`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `activities_view_users` AS select `u`.`screename` AS `screename`,count(0) AS `COUNT(*)`,max(`a`.`datetime`) AS `last_datetime`,`a`.`activity_page_id` AS `activity_page_id`,`a`.`datetime` AS `datetime`,`a`.`ip_id` AS `ip_id`,`a`.`user_id` AS `user_id`,`a`.`corpus_id` AS `corpus_id`,`a`.`report_id` AS `report_id`,`a`.`activity_type_id` AS `activity_type_id`,`a`.`execution_time` AS `execution_time` from (`activities` `a` join `users` `u` on((`a`.`user_id` = `u`.`user_id`))) group by `a`.`user_id` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
Expand All @@ -2006,7 +2005,6 @@ UNLOCK TABLES;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `reports_annotations` AS select `ra`.`id` AS `id`,`ra`.`report_id` AS `report_id`,`ra`.`type_id` AS `type_id`,`at`.`name` AS `type`,`ra`.`from` AS `from`,`ra`.`to` AS `to`,`ra`.`text` AS `text`,`ra`.`user_id` AS `user_id`,`ra`.`creation_time` AS `creation_time`,`ra`.`stage` AS `stage`,`ra`.`source` AS `source` from (`reports_annotations_optimized` `ra` left join `annotation_types` `at` on((`at`.`annotation_type_id` = `ra`.`type_id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
Expand All @@ -2024,7 +2022,6 @@ UNLOCK TABLES;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `tokens_tags` AS select `tt`.`token_tag_id` AS `token_tag_id`,`tt`.`token_id` AS `token_id`,`b`.`text` AS `base`,`tt`.`base_id` AS `base_id`,`tokens_tags_ctags`.`ctag` AS `ctag`,`tt`.`disamb` AS `disamb` from ((`tokens_tags_optimized` `tt` left join `bases` `b` on((`b`.`id` = `tt`.`base_id`))) left join `tokens_tags_ctags` on((`tt`.`ctag_id` = `tokens_tags_ctags`.`id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions database/update/update_001_user_activities.sql

This file was deleted.

62 changes: 0 additions & 62 deletions database/update/update_002_report_perspective.sql

This file was deleted.

13 changes: 0 additions & 13 deletions database/update/update_003_images.sql

This file was deleted.

36 changes: 0 additions & 36 deletions database/update/update_004_relation_types.sql

This file was deleted.

83 changes: 0 additions & 83 deletions database/update/update_005_events.sql

This file was deleted.

17 changes: 0 additions & 17 deletions database/update/update_006_reports_annotations.sql

This file was deleted.

2 changes: 0 additions & 2 deletions database/update/update_007_annotation_types.sql

This file was deleted.

19 changes: 0 additions & 19 deletions database/update/update_008_tokens.sql

This file was deleted.

3 changes: 0 additions & 3 deletions database/update/update_009_annotation_types.sql

This file was deleted.

27 changes: 0 additions & 27 deletions database/update/update_010_corpus_perspective_roles.sql

This file was deleted.

9 changes: 0 additions & 9 deletions database/update/update_011_report_perspectives.sql

This file was deleted.

Loading