• Sebastian Kummer's avatar
    Merging in latest from upstream (ZP/z-push:refs/heads/develop) · 1ff5fc06
    Sebastian Kummer authored
    * commit 'ddf54b20': (22 commits)
      ZP-230 Remove obsolete include.
      ZP-230 Fixed @throws of GetState() and CleanStates() so it's the same as in the interface.
      ZP-882 Make sure $policyfile is always set. parse_ini_file() returns an empty array if the file is not found.
      ZP-882 Load policies.ini with the REAL_BASE_PATH.
      ZP-230 Replaced RuntimeException with UnavailableException (newly introduced), changed IStateMachine so GetState() and SetState() can throw this exception, adjusted interface documentation in filestatemachine.
      ZP-230 Removed zpush_ prefixes of the table names and table crate constants, throw FatalExceptions on DB errors, option for getDbh() to rethrow the PDO exception (when checking for tables), removed created_at and updated_at fields from the users table, removed other methods not part of the interface (GetUserDevicePermission, GetMappedUsername, MapUsername and UnmapUsername - code will be attached to the ticket), renamed and fixed CheckTablesHaveData so it indicates if there is data in any table, included sql stuff to composer autoload, tweaked the output of the migration script, don't log GetStateHash() as it logs a lot.
      ZP-874 Warn in WBXMLencoder processMultipart() if stream has "no size".
      ZP-879 Fixed moving items when working on shared folders.
      ZP-230 Deleted unnecessary mysql folder and mysql.sql file.
      ZP-230 Fix hierarchy folder data before starting the migration. Fixed typo in output.
      ZP-230 Removed log statement.
      ZP-230 Cache prepared SQL statement for GetStateHash calls.
      ZP-230 Create a PDO instance once and reuse it in later calls.
      ZP-230 Made dsn instance variable instead of a local variable in every function.
      ZP-230 Capitalised SQL key words in statements.
      ZP-230 Capitalised SQL key words in statements. Reviewed log statements. Removed unnecessary sprintf calls. Fixed typos.
      ZP-230 Fixed update statement in SetState. Null values weren't handled properly.
      ZP-230 Script to migrate file states to database states. Changes to sqlstatemachine.php to work better with the migration script.
      ZP-230 Changed config to use separate parameters for the engine, server, port and database. Changed the code to match that. Added checks for the database and table creation if they not exist. Fixed comments.
      ZP-230 Use __construct instead of PHP 4 style constructor for PHP 7 compatibility.
      ...
    1ff5fc06
Name
Last commit
Last update
..
core Loading commit data...
default Loading commit data...
exceptions Loading commit data...
interface Loading commit data...
log Loading commit data...
request Loading commit data...
syncobjects Loading commit data...
utils Loading commit data...
wbxml Loading commit data...
webservice Loading commit data...