Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

PHP 7 on Travis-CI (re-redux) #7366

Merged
merged 78 commits into from
Mar 25, 2015

Commits on Mar 24, 2015

  1. add php 7 on .travis.yml

    samsonasik authored and weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    0de4dd6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00b5275 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c3ace8 View commit details
    Browse the repository at this point in the history
  4. Broaden test assertion

    We're ensuring at least one item is in $_ENV, but we are not resetting
    its state. As such, the comparison should be that it has at least 1
    item, not exactly 1.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    b48c2af View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ef0b6ba View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ad5134d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ef6cace View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e77e759 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    edb4f56 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8e5c7e0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1a4e5b1 View commit details
    Browse the repository at this point in the history
  12. Fixed argument redefinition problems

    - Prior to PHP 7, you could specify the same name for multiple arguments; PHP 7
      makes this a fatal error. The "feature" was used in several tests where 2 or
      more arguments from a data provider were not being used. Updated these to use
      discrete names for each argument.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    22959f0 View commit details
    Browse the repository at this point in the history
  13. Fix E_RECOVERABLE_ERROR detection in Zend\Di tests

    Prior to PHP 7, an E_ERROR was returned when trying to instantiate a
    class but omitting required arguments; with PHP 7, this is now an
    E_RECOVERABLE_ERROR. As such, trapping such errors intentionally
    requires an error handler.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    8608973 View commit details
    Browse the repository at this point in the history
  14. Skip some Logger tests when under PHP 7

    Both calling an undefined instance method as well as undefined static method now
    raise an E_ERROR (instead of an E_RECOVERABLE_ERROR), which means shutdown
    functions cannot be called... nor can the tests be executed.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    cb7411b View commit details
    Browse the repository at this point in the history
  15. Ensure height and width are integers

    when used as parameters to various `image*()` functions
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    f8fa34b View commit details
    Browse the repository at this point in the history
  16. Cast data to string before caching

    Ensure the data being written is a string before attempting to write it.
    
    Also, `usleep()` requires an integer; change made to allow Filesystem storage
    tests to pass.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    0c11215 View commit details
    Browse the repository at this point in the history
  17. ob_implicit_flush expects an integer; dba_replace, a string

    Even though the ob_implicit_flush docs use the boolean constants, it actually
    expects an integer, either 0 or 1. Because PHP.
    
    dba_replace expects string data.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    98c103d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b798ca5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    f949d21 View commit details
    Browse the repository at this point in the history
  20. Use string value when performing strtr

    Oddly, there was a cast version of the value already; it just wasn't being used
    in strtr().
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    dfbb203 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    69a0f41 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    53a2eaf View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    2a20efb View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    452ac65 View commit details
    Browse the repository at this point in the history
  25. Skip tests that cannot run in PHP 7

    Error that the test was trapping has been converted to an E_FATAL starting in
    PHP 7.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    dbf6be2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    9bfb48f View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    189414e View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    ce9ea45 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    14a889f View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    a456d29 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0dbfb64 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    0071837 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    955af24 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    cb69154 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    9d0e449 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8b22263 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    f6f2dc1 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1cc7429 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    29d6fde View commit details
    Browse the repository at this point in the history
  40. Override MongoDBOptions::__set to validate arguments

    - Instead of relying on PHP errors, as invalid types raise E_FATAL
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    bbf742c View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    e923464 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    f2a94a1 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    e187b77 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    23f8ba6 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    fae07f9 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    6ed8959 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    8d34295 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    eab06c4 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    b686ef5 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    99e8520 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    4552cee View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    fded78e View commit details
    Browse the repository at this point in the history
  53. Ensure we have reasonable dependencies

    - Used semantic operator for all deps.
    - Added composer.lock to repo, to speed up builds.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    126f91c View commit details
    Browse the repository at this point in the history
  54. Rename Int filter to ToInt

    "int" is a reserved keyword starting in PHP 7. This patch changes the
    class name to `ToInt`. A later patch will provide the original class,
    but have it extend the new one.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    e8a03dd View commit details
    Browse the repository at this point in the history
  55. Re-add Int filter for BC

    Re-adds the `Int` filter for backwards compatibility. The new version
    extends `ToInt`, but raises an `E_USER_DEPRECATED` in the constructor,
    instructing users to use the new filter.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    833eff1 View commit details
    Browse the repository at this point in the history
  56. Renamed Int validator to IsInt

    PHP 7 reserves "int" as a keyword, necessitating a change in the class
    name; a later commit will re-add the original class, with a deprecation
    notice.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    5a5c493 View commit details
    Browse the repository at this point in the history
  57. Re-added Int validator for BC

    This patch re-adds the `Int` validator to retain backwards compatility. It
    extends the `IsInt` validator, raising an `E_USER_DEPRECATED` error
    during instantiation.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    f836016 View commit details
    Browse the repository at this point in the history
  58. Renamed Float validator to IsFloat

    PHP 7 marks "float" as a reserved keyword; this patch renames the
    `Float` validator to `IsFloat` for forward compatibility. A later patch
    will re-add the original class with a deprecation notice in the
    constructor.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    37bfe6d View commit details
    Browse the repository at this point in the history
  59. Re-add Float validator for BC

    This patch re-adds the `Float` validator for backwards compatibility. It
    extends the `IsFloat` validator and raises an `E_USER_DEPRECATED` notice
    during instantiation to warn users to migrate.
    weierophinney committed Mar 24, 2015
    Configuration menu
    Copy the full SHA
    4f0eb9e View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2015

  1. Renamed Float DDL column type to Floating

    PHP 7 reserves "float" as a keyword; this patch renames the class to
    `Floating`. A later patch will reintroduce the original class for
    backwards compatibility, and raise a deprecation notice.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    7a6de4f View commit details
    Browse the repository at this point in the history
  2. Re-add Float column for backwards compatibility

    Re-added the Float DDL column class to retain BC; it now raises an
    `E_USER_DEPRECATED` notice on instantiation to warn users to migrate.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    c95a696 View commit details
    Browse the repository at this point in the history
  3. Renamed String XML-RPC value to Text

    "string" is now a reserved keyword in PHP 7, so the class must be
    renamed. Updated `AbstractValue` to use the new class name in all
    instances, ensuring that both the Server and Client will continue to
    work seamlessly.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    0ba058c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2cec312 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8bfc816 View commit details
    Browse the repository at this point in the history
  6. Fix failing Form tests

    - Range element uses a float validator internally; updated it to use `IsFloat`
    - A number of tests and test assets used the `Float` validator; since they do
      not use the plugin manager, these were updated to use `IsFloat` instead.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    db1f4ca View commit details
    Browse the repository at this point in the history
  7. CS fixes reported by php-cs-fixer

    - Unused use
    - whitespacey lines
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    a0e4380 View commit details
    Browse the repository at this point in the history
  8. Rename Object form annotation to Instance

    `object` will be a reserved word in PHP 7, and, as such, we cannot use it as an
    annotation class name. `Instance` was chosen, and `Object` has been altered to
    extend `Instance` and emit an `E_USER_DEPRECATED` notice on instantiation.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    6972652 View commit details
    Browse the repository at this point in the history
  9. Renamed Null log writer to Noop

    `null` will be a reserved keyword in PHP 7; this patch renames the `Null` log
    writer to `Noop` (as it performs a no-op). A later patch will re-define the
    `Null` writer to extend `Noop` and emit a deprecation notice.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    7410c83 View commit details
    Browse the repository at this point in the history
  10. Re-add Null log writer for BC

    This patch reinstates the Null log writer for BC purposes. It extends
    Noop, and emits an `E_USER_DEPRECATED` notice on instantiation.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    25a53b5 View commit details
    Browse the repository at this point in the history
  11. Renamed Null filter to ToNull

    `null` will be a reserved keyword in PHP 7. This patch renames the `Null` filter
    to `ToNull`, and ensures the filter plugin manager will use the new class. A
    future patch will reinstate the `Null` filter with an `E_USER_DEPRECATED`
    notice.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    cea00bf View commit details
    Browse the repository at this point in the history
  12. Re-added Null filter for BC

    Re-added the Null filter for BC purposes; it now emits an `E_USER_DEPRECATED`
    notice on instantiation, warning the user to migrate.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    5e3a3d0 View commit details
    Browse the repository at this point in the history
  13. Renamed Null pagination adatper to NullFill

    `null` will be a reserved keyword in PHP 7. This patch renames the
    `Null` pagination adapter to `NullFill` (which describes better what it
    does). A future patch will reinstate the original, but emit an
    `E_USER_DEPRECATED` notice.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    466fa52 View commit details
    Browse the repository at this point in the history
  14. Re-add Null pagination adapter for BC

    This patch re-adds the `Null` pagination adapter for BC. It now emits an
    `E_USER_DEPRECATED` notice on instantiation.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    5562393 View commit details
    Browse the repository at this point in the history
  15. Renamed Null mail transport to InMemory

    `null` will be a reserved keyword in PHP 7. This patch renames the `Null` mail
    transport to `InMemory`, and updates the factory to return an `InMemory`
    instance whenever `null` is retrieved. A future patch will re-add the `Null`
    transport with an `E_USER_DEPRECATION` notice.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    605df76 View commit details
    Browse the repository at this point in the history
  16. Re-add Null mail transport for BC

    This patch re-adds the `Null` mail transport to keep BC. The class
    extends `InMemory` and raises an `E_USER_DEPRECATED` on instantiation.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    588256e View commit details
    Browse the repository at this point in the history
  17. Update paginator plugin manager to use NullFill

    Added aliases for "null" and "Zend\Paginator\Adapter\Null" that point to
    "nullfill", and defined that as an invokable class pointing at
    `Zend\Paginator\Adapter\NullFill`.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    349efe6 View commit details
    Browse the repository at this point in the history
  18. Updated Zend\Di test to use ToNull filter

    instead of `Null` filter, to ensure tests work going forward.
    
    Also fixed the deprecation notice in the `null` filter to point to the
    appropriate replacement class.
    weierophinney committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    2dbf40e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ee2c535 View commit details
    Browse the repository at this point in the history