131 Commits

Author SHA1 Message Date
Derick Rethans
c1cec5cbc6 Bump integer size 2023-08-30 12:45:25 +01:00
Peter Kokot
5ed911a14f Bump copyrights and license year range to 2019 2019-01-25 00:22:14 +01:00
Peter Kokot
5a74283bb2 Add data fixtures CLI command
This patch adds ability to insert data fixtures in the development
environment using new console script via Symfony Console component
and Faker library which generates demo data for localhost development
environments.
2018-11-22 19:33:37 +01:00
Peter Kokot
8cd306f415 Add shebang and make data.php executable 2018-11-19 22:14:11 +01:00
Peter Kokot
31632f2b82 Migrate package to PDO 2018-11-19 22:11:38 +01:00
Peter Kokot
2e0dc85ec4 Migrate more files to PDO 2018-11-18 21:37:55 +01:00
Peter Kokot
6ca8efead4 Migrate sql scripts to PDO 2018-11-18 00:36:37 +01:00
Peter Kokot
26f22e60b1 Add use statements and namespaces 2018-11-15 04:25:08 +01:00
Peter Kokot
7674ea0586 Add use statements 2018-11-15 03:55:08 +01:00
Peter Kokot
c0757d9cf6 Remove not needed database connection in CLI dev script 2018-11-14 16:06:12 +01:00
Peter Kokot
2013d3f6b6 Revert "Refactor database configutation"
This reverts commit fdad830303.
2018-11-14 06:06:11 +01:00
Peter Kokot
fdad830303 Refactor database configutation
This patch moves database configuration from constants into a
configuration level values for dev and prod environments.
2018-11-14 05:47:22 +01:00
Peter Kokot
8371f395a9 Refactor bootstrap
This patch refactors bootstrap file to include more PEAR things so
other files don't need to do this. It's also done as a partial migrtion
to better classes autoloading in the future.
2018-11-13 18:12:33 +01:00
Peter Kokot
45b31bc936 Revert "Add dual autoloading mechanism"
This reverts commit e3c64d8aba.
2018-11-13 00:20:59 +01:00
Peter Kokot
e3c64d8aba Add dual autoloading mechanism
This patch adds a dual autoloading mechanism for classes until further
refactorings will be possible using Composer's autoloader and full
PSR-4 support.
2018-11-12 22:55:55 +01:00
Peter Kokot
5bdc928cee Replace sizeof() with count()
The sizeof() function is an alias of count() which is more used in PHP
and more intuitive when doing counting. This patch syncs usage of these
two functions in code.
2018-11-05 03:59:37 +01:00
Peter Kokot
011a93cea6 Sync code comments coding style 2018-11-04 22:31:28 +01:00
Peter Kokot
0063d56de5 Replace PEAR with PECL in comments 2018-11-03 14:53:43 +01:00
Peter Kokot
b85e0f367e Remove old register_globals ini directive usage 2018-10-31 09:38:03 +01:00
Peter Kokot
f2eeb413c6 Sync requiring dependencies
This patch syncs and updates required dependencies using
`require_once()` where it is more appropriate and syncs its usage across
the code.
2018-10-31 09:32:56 +01:00
Peter Kokot
21e1b29108 Sync tabs and spaces
This patch syncs and converts all files to include spaces for indentation
except for Makefile. Prior to this patch there were mixed tabs and
spaces in most files.
2018-10-30 02:30:07 +01:00
Peter Kokot
7b5613e293 Refactor package class
This patch refactors the package class from the pear-database.php file
to start modernizing it and make it more manageable.

Several methods were removed since they are not used in current code:
- Package::getDownloadURL()
- Package::getPackageFile()
- Package::getDepDownloadURL()
- Package::search()

Other methods got method visibility and static keywords added since
current code still uses static calls on many places and to split
refactoring in multiple phases.
2018-10-29 22:50:50 +01:00
Peter Kokot
1218c9c6d8 Refactor category class
This patch moves category class from database file to its dedicated file
in the src directory and renames it to Category. Additionally for now
the static keywords were added to methods until further refactorings.
2018-10-29 20:50:30 +01:00
Peter Kokot
c883151171 Remove commented code without functionality 2018-10-29 19:04:51 +01:00
Peter Kokot
e1e774f605 Update headers
This patch syncs and updates all headers in source code files across the
PECL website code base.

- Authors preserved
- The PECL website titles used and synced as is the current project name
- PHP License version updated to the latest
- Year ranges synced
- Comment block synced as is used in php-src files - simplified
  multiline comment block.
- PHP Doc block tags @author removed in favor of the main file headers
2018-10-28 17:33:45 +01:00
Peter Kokot
d2c355e514 Update http to https 2018-10-27 23:11:56 +02:00
Peter Kokot
7c719ebc6e Add README
This patch adds an initial README file to project root directory
together with some changes:

- Added missing LICENSE file
- Added PECL image logo in SVG format
- readme from sql directory removed and information merged into this one
- apache-setup.txt file included some obsolete and removed PHP ini
  directives and has been replaced with the installation steps in the
  main README file instead.
2018-10-27 22:01:18 +02:00
Peter Kokot
e354cf02e1 Sync PHP closing tags in all PHP files
Closing tag is redundant and might output additional characters where in
certain PHP functions such as header(), session_* and similar causes
issues.
2018-10-26 18:11:23 +02:00
Peter Kokot
4002a85896 Remove old proposals artefacts
The package proposals functionality has been removed via
ffef2b7f83
2018-10-26 17:09:22 +02:00
Peter Kokot
4345e037d2 Refactor long array() syntax to short [] 2018-10-26 17:06:00 +02:00
Peter Kokot
53159bb183 Fix permissions
Having synced file permissions in Git repositories is a reccurring
issue. Git can track files as executables (0755) or not (0644). Usually,
all files except the executable ones such as command line scripts or
binary executables, should be set to 0644.

This patch syncs permissions in the Git repository.
2018-10-25 15:22:47 +02:00
Peter Kokot
2e1576137f Sync leading and final newlines
This patch adds missing newlines, trims multiple redundant final
newlines into a single one and trims leading newlines at the beginning
of the files.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-21 23:41:49 +02:00
Peter Kokot
9d44586318 Trim trailing whitespace 2018-10-21 23:33:52 +02:00
Peter Kokot
da4fe2abd1 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-08-08 16:40:36 +02:00
kovacs.ferenc
80fb39103b make sure we are using utf-8 as we have packages with descriptions containing utf-8 strings 2015-12-09 01:48:25 +01:00
Pierre Joye
ffef2b7f83 remove package_proposals.sql, not used 2015-03-31 03:10:51 +02:00
Pierre Joye
57e593da73 add full structure dump, update to 5.x 2015-03-30 09:10:51 +02:00
Pierre Joye
56557cf114 not used anymore 2015-03-28 07:28:27 +01:00
Ferenc Kovacs
b384bbeefb update the db schema for the previous commit 2011-08-27 22:45:21 +00:00
Ferenc Kovacs
c4bab80f5b replacing the long arrays with the short ones ($HTTP_SERVER_VARS vs $_SERVER) 2011-06-12 13:39:40 +00:00
Ferenc Kovacs
b02dae2972 fix for the "make create"
see http://news.php.net/php.webmaster/11183
2011-06-12 13:28:06 +00:00
Alejandro Leiva
99d87e9a83 - Sync database 2008-11-06 14:53:26 +00:00
Alejandro Leiva
03d7af093f - Add field approved. 2008-09-23 08:39:47 +00:00
Alejandro Leiva
8e2a4ec3e2 - Fixing typo in field name newpackagename. 2008-09-22 16:04:11 +00:00
Pierre Joye
2d1b5e10c4 - add "unmaintained", "abandonned" and "superseeded" flag as well
as a link to a possible new home for a package (Runar Olsen and me)
- prepare direct link to the wiki (smtg like pecl/packagename can be used)
2008-06-19 10:56:15 +00:00
Jani Taskinen
eb702d28d2 - Added bug_link column into packages table (for external bug systems per package) 2007-07-13 11:24:22 +00:00
Pierre Joye
70dc26b1b0 - add pkg aliases table 2006-10-21 15:41:32 +00:00
Pierre Joye
f79152aac6 - add sql defs for the aggr. stat 2006-10-21 15:20:36 +00:00
Helgi Þormar Þorbjörnsson
d6ad6684b7 Sync with database. 2005-10-25 01:13:39 +00:00
Dan Scott
c3a7c7f7b2 Make peclweb version of db match pearweb version (license column width). 2005-10-18 22:55:39 +00:00