Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

symfony Project Blog:
Symfony Type Declarations, Return Types and PHPUnit Compatibility
Dec 12, 2019 @ 11:30:02

If you follow the Living on the Edge category of this blog, you'll find all the latest and greatest new features of each Symfony version. Big and small features that help you create your projects while having the best possible developer experience. However, this is only part of the development a...

tagged:

Link: https://symfony.com/blog/symfony-type-declarations-return-types-and-phpunit-compatibility?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Tomáš Votruba Blog:
How to Get Rid of Technical Debt or What We Would Have Done Differently 2 Years ago
Dec 12, 2019 @ 09:30:02

We talked about cleaning legacy code with Rector 2 months ago on 40th meetup of PHP friends in Prague.

Who is we? Me and CTO of the company I worked for, a great leader and technical expert who taught me a lot, Milan Mimra.

The talk was not full of shallow tips, nor about framework migr...

tagged:

Link: https://www.tomasvotruba.cz/blog/2019/12/09/how-to-get-rid-of-technical-debt-or-what-we-would-have-done-differently-2-years-ago/


symfony Project Blog:
New in Symfony 4.4: WebProfiler Improvements
Dec 11, 2019 @ 14:30:03

Mailer Integration¶

        Contributed by Fabien Potencier  
        in #32912. 
     
 
 

The new Symfony Mailer was introduced in Symfony 4.3. In Symfony 4.4 we improved and polished it, including the integration wit...

tagged:

Link: https://symfony.com/blog/new-in-symfony-4-4-webprofiler-improvements?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Matthias Noback - PHP & Symfony:
Defining a custom filter and sorter for Sculpin content types
Dec 11, 2019 @ 12:00:03

This blog runs on Sculpin, a static site generator. The generator itself runs on Symfony, which for me makes it easy to extend. However, I find that if you want something special, it can usually be done, but it may take several hours to get it right. In the end though, the solution is often quite el...

tagged:

Link: https://matthiasnoback.nl/2019/12/defining-a-custom-filter-and-sorter-for-sculpin-content-types/

murze.be:
★ 📺 Video: Using tags and segments in Mailcoach
Dec 11, 2019 @ 10:30:05

My team and I are currently building Mailcoach, a self-hosted solution to easily send out newsletters and email campaigns. In this video, I demonstrate how email lists can be segmented using tags.

Together with Mailcoach, we'll release a video course on how to use Mailcoach, and how it was buil...

tagged:

Link: https://freek.dev/1526-video-using-tags-and-segments-in-mailcoach

Ruben Van Assche:
Getting started with GitHub Actions and Laravel
Dec 11, 2019 @ 09:30:02

At Spatie, we have been using Circle CI, Travis CI, Chipper CI, and other services for quite a while, but we couldn't find an exact fit for our cases. We were excited when GitHub announced its CI/CD service named GitHub Actions this year and think this might be the CI/CD service for all our projects...

tagged:

Link: http://rubenvanassche.com/getting-started-with-github-actions/

RIPS Technologies Blog:
How to Fine-Tune Static Code Analysis - Part 1
Dec 10, 2019 @ 14:30:02

Before integrating SAST into your SDLC you want to make sure that your code analysis produces only relevant findings with the best performance possible. In the first part of this guide, we will cover the following 5 configuration options and best practices for fine-tuning: Set the Language Version ...

tagged:

Link: https://blog.ripstech.com/2019/how-to-fine-tune-static-code-analysis-part-1/

Derick Rethans:
Xdebug Update: November 2019
Dec 10, 2019 @ 09:30:03

  Xdebug Update: November 2019 
   
     London, UK 
    Tuesday, December 10th 2019, 09:17 GMT 
   
  Another month, another monthly update where I explain what happened with Xdebug development in this past month. It will be published on the first Tuesday after t...
tagged:

Link: https://derickrethans.nl/xdebug-update-november-2019.html

Community News:
Latest PECL Releases (12.10.2019)
Dec 10, 2019 @ 08:05:01

Latest PECL Releases:

  • igbinary 3.1.0b3
    * Skip over object properties that are uninitialized or unset when serializing, instead of serializing them as null. This is done to avoid Errors when unserializing their values for php 7.4 typed properties.

  • ev 1.0.8
    - Fixed build warnings with PHP 7.4.0-alpha1: 'incompatible pointer type' warnings occurred in assignments to the write property handlers (thanks to Remi Collet). - Re-fixed the Windows build errors related to errno in a way that the libev sources are left pristine. (The root of the issue is actually rooted in the PHP code where the errno macro is re-defined.)
  • xdebug 2.9.0
    Mon, Dec 9, 2019 - xdebug 2.9.0
    • Improvements:

      • Fixed issue #1723: Class/function pre-analysis for code coverage speed improvements
    • Removed features:

      • Fixed issue #1301: Removed aggregated profiler feature
      • Fixed issue #1720: Remove superfluous xdebug.remote_handler setting

    = Fixed bugs:

    • Fixex issue #1722: Build warning issues on FreeBSD
    • Fixed issue #1724: Missing property types and uninitialised values in variable dumping routines
  • skywalking 3.2.4
    Support php7.4
  • igbinary 3.1.0b2
    * Fix crashes related to unserializing instances of classes with php 7.4 typed properties.
  • igbinary 3.1.0b1
    * Support php 7.4's __serialize/__unserialize the same way serialize()/unserialize() does. This deliberately only supports __serialize/__unserialize in php 7.4, to making switching to/from serialize()/unserialize() as straightforward as possible.
  • rdkafka 4.0.1
    BREAKING CHANGE: Since version 4.0, the client no longer polls for network events at shutdown (during object destructor). This behaviour didn't give enough control to the user in case of server issue, and could cause the script to hang while terminating.

    Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

    Features

    • Added RdKafkaConsumerTopic::consumeCallback() (#310, @nick-zh)

    Enhancements

    • Run integration tests in CI (#223, @Steveb-p)
    • Improved README (#295 #297 #298, #307 @Steveb-p @sndsgd @nick-zh)
    • Fix windows test cases (#296, @cmb69)
    • Add testsuite in pecl archive (#291, @remicollet)
    • Add editor config (#308, @Steveb-p)

    Bugfixes

    • Fix build (#290, @nick-zh)
    • Fix segfault during module shutdown (#293, @arnaud-lb @nick-zh)
    • Fix RdKafkaTopic visibility in PHP 7.4 (#316, @nick-zh)
    • Fix headers memory management in producev (#318 , @nick-zh)
    • Fix partition number in error (#321, @nick-zh)
  • rdkafka 3.1.3
    * Fix segfault during module shutdown (#293, @arnaud-lb @nick-zh) * Fix RdKafkaTopic visibility in PHP 7.4 (#316, @nick-zh)
  • ev 1.0.7
    - Updated libev - Fixed Windows build by applying a patch suggested by Christoph M. Becker.
  • gRPC 1.26.0RC2
    - Fix php5.5 build
  • xhprof 2.1.2
    -- Fixed build with PHP-7.4 #32
  • datadog_trace 0.35.0
    ### Added
    • Compile-time metric #648
    • Health metrics: track segmentation faults #621

    Changed

    • Migrate Mysqli integration to sandboxed api #635
    • Migrate Zend framework integration to sandboxed api #655
    • Migrate Symfony framework integration to sandboxed api #667
    • Migrate Mongo library integration to sandboxed api #669
    • Refactor opcode hooks #659

    Fixed

    • CodeIgniter namespace definition #650
    • Error reporting in case of fatal errors #671
    • Mutation of Memcached result code #663
  • gRPC 1.26.0RC1
    - gRPC Core 1.26.0 update - #20991: Added php.ini option to set custom grpc log location - #20987: Performance improvement to Call::startBatch() - #20903: Init ssl roots cert only once
  • mongodb 1.6.1
    ** Bug * [PHPC-1503] - Fix MONGOC_CC assignment in config.w32 for PHP 7.4

    ** Task

    • [PHPC-1504] - Add PHP 7.4 to AppVeyor build matrix
    • [PHPC-1505] - Update to libmongoc 1.15.2
  • swoole 4.4.13RC1
    New API --- + Built-in Connection Pool ([examples](https://github.com/swoole/library/tree/master/examples)) ([doc](https://wiki.swoole.com/wiki/page/p-library.html)) (@twose)

    Enhancement

    • Support websocket compression on CoroutineHttpServer (#2943) (@twose)
    • Support CURLOPT_PUT, CURLOPT_INFILE, CURLOPT_INFILESIZE (#2954) (@twose)
    • Add error info for bind error (@LeiZhang-Hunter) (@twose) (#2972)
    • Update error info if socket call failed (it will not warn anymore if not necessary) (1e9b8cbb) (@twose)
    • Make library submodule (@twose)

    Fixed

    • Fixed gdbinit in docker (missing symbol) (d46dc2d7 (@twose)
    • Fixed compression in POST request (#2947) (@twose)
    • Fixed compatibility of Websocket->push method (ac7dbcbc) (@twose)
    • Fixed $output result inconsistency (Yurunsoft) (#2955)
    • Fixed Coroutine::fread (#2958) (@matyhtf)
    • Fixed CoroutineServer can not exit normally #2837 (#2962) (@twose)
    • Fixed memory leak in HTTP2Server (#2964) (@twose)
    • Fixed unsafe_event (#2970) (@matyhtf)
    • Fixed illegal call after server start (#2977) (@twose)
    • Fixed WebSocketFrame can not enable mask (#2982) (#2983) (@twose)
    • Fixed memory leak of Process callback (898894a7) (@twose)
    • Fixed case where minfd is never updated (#2985)
    • Fixed HTTP2 module is always enable (3925e212) (@twose)
    • Fixed HTTP2 context double free (#2987) (f4cdff1b) (@twose)
    • Fixed string comparison (#2988) (97c6c425) (9e5eae63) (@twose)
    • Fixed HTTP2 pipeline (#2993) (@twose)
    • Fixed coroutine context has been destroyed (#2991) (@twose)

    Kernel

    • Refactor swoole_(get|set)_object to the way of extending zend_object (more stable and faster) (#2966) (@twose)
    • Support Github Actions (@twose) (@matyhtf)
  • memcached 3.1.5
    PHP 7.0 - 7.1 - 7.2 - 7.3 - 7.4 release of memcached extension. Note that support for libmemcached 0.x series has been discontinued and the oldest actively tested version is 1.0.8. It is highly recommended to use version 1.0.18 of libmemcached.

    Fixes

    • Fix build with PHP 7.4 release due to ulong typedef removal (#445)
  • sqlsrv 5.7.1preview
    [Added] - Support for PHP 7.4 - Support for Red Hat 8 and macOS Catalina (10.15) - Feature Request [#1018](https://github.com/microsoft/msphpsql/issues/1018) - support for [PHP extended string types](https://github.com/microsoft/msphpsql/wiki/Features#natlTypes) - Pull Request [#1043](https://github.com/microsoft/msphpsql/pull/1043) - [Always Encrypted with secure enclaves](https://github.com/microsoft/msphpsql/wiki/Features#alwaysencryptedV2), which requires [MS ODBC Driver 17.4+](https://docs.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver15) and [SQL Server 2019](https://www.microsoft.com/sql-server/sql-server-2019) [Removed] - Dropped support for [PHP 7.1](https://www.php.net/supported-versions.php) [Fixed] - Issue [#1027](https://github.com/microsoft/msphpsql/issues/1027) - Fixed how drivers handle query timeout settings - Pull Request [#1049](https://github.com/microsoft/msphpsql/pull/1049) - performance improvement for fetching from tables with many columns - cached the derived php types with column metadata to streamline data retrieval [Limitations] - No support for inout / output params when using sql_variant type - No support for inout / output params when formatting decimal values - In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connecting will not work - Always Encrypted requires [MS ODBC Driver 17+](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) - Only Windows Certificate Store and Azure Key Vault are supported. Custom Keystores are not yet supported - Issue [#716](https://github.com/Microsoft/msphpsql/issues/716) - With Always Encrypted enabled, named parameters in subqueries are not supported - Issue [#1050](https://github.com/microsoft/msphpsql/issues/1050) - With Always Encrypted enabled, insertion requires the column list for any tables with identity columns - [Always Encrypted limitations](https://docs.microsoft.com/sql/connect/php/using-always-encrypted-php-drivers#limitations-of-the-php-drivers-when-using-always-encrypted) [Known Issues] - Data Classification metadata retrieval requires ODBC Driver 17.4.2.1+ and [SQL Server 2019](https://www.microsoft.com/sql-server/sql-server-2019) - Connection pooling on Linux or macOS is not recommended with [unixODBC](http://www.unixodbc.org/) < 2.3.7 - When pooling is enabled in Linux or macOS - unixODBC <= 2.3.4 (Linux and macOS) might not return proper diagnostic information, such as error messages, warnings and informative messages - due to this unixODBC bug, fetch large data (such as xml, binary) as streams as a workaround. See the examples [here](https://github.com/Microsoft/msphpsql/wiki/Features#pooling)
  • pdo_sqlsrv 5.7.1preview
    [Added] - Support for PHP 7.4 - Support for Red Hat 8 and macOS Catalina (10.15) - Feature Request [#1018](https://github.com/microsoft/msphpsql/issues/1018) - support for [PHP extended string types](https://github.com/microsoft/msphpsql/wiki/Features#natlTypes) - Pull Request [#1043](https://github.com/microsoft/msphpsql/pull/1043) - [Always Encrypted with secure enclaves](https://github.com/microsoft/msphpsql/wiki/Features#alwaysencryptedV2), which requires [MS ODBC Driver 17.4+](https://docs.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver15) and [SQL Server 2019](https://www.microsoft.com/sql-server/sql-server-2019) [Removed] - Dropped support for [PHP 7.1](https://www.php.net/supported-versions.php) [Fixed] - Issue [#1027](https://github.com/microsoft/msphpsql/issues/1027) - Fixed how drivers handle query timeout settings - Pull Request [#1049](https://github.com/microsoft/msphpsql/pull/1049) - performance improvement for fetching from tables with many columns - cached the derived php types with column metadata to streamline data retrieval [Limitations] - No support for inout / output params when using sql_variant type - No support for inout / output params when formatting decimal values - In Linux and macOS, setlocale() only takes effect if it is invoked before the first connection. Attempting to set the locale after connecting will not work - Always Encrypted requires [MS ODBC Driver 17+](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) - Only Windows Certificate Store and Azure Key Vault are supported. Custom Keystores are not yet supported - Issue [#716](https://github.com/Microsoft/msphpsql/issues/716) - With Always Encrypted enabled, named parameters in subqueries are not supported - Issue [#1050](https://github.com/microsoft/msphpsql/issues/1050) - With Always Encrypted enabled, insertion requires the column list for any tables with identity columns - [Always Encrypted limitations](https://docs.microsoft.com/sql/connect/php/using-always-encrypted-php-drivers#limitations-of-the-php-drivers-when-using-always-encrypted) [Known Issues] - Data Classification metadata retrieval requires ODBC Driver 17.4.2.1+ and [SQL Server 2019](https://www.microsoft.com/sql-server/sql-server-2019) - Connection pooling on Linux or macOS is not recommended with [unixODBC](http://www.unixodbc.org/) < 2.3.7 - When pooling is enabled in Linux or macOS - unixODBC <= 2.3.4 (Linux and macOS) might not return proper diagnostic information, such as error messages, warnings and informative messages - due to this unixODBC bug, fetch large data (such as xml, binary) as streams as a workaround. See the examples [here](https://github.com/Microsoft/msphpsql/wiki/Features#pooling)
tagged:

Link:


Trending Topics: