Tag:php7

  • Php7 production environment queue beanstalkd usage details

    Time:2020-10-10

    Application scenarios Why use it? What are the benefits? This should be put at the beginning. Only when you understand what it is for and what is suitable for it, can you better combine it with your own project. Where to use it, where to learn it, and if you don’t have to learn it, […]

  • Summary of php7 new function examples

    Time:2020-10-5

    This paper summarizes the new functions of php7. For your reference, the details are as follows: 1、 Core Added group use syntax declaration. RFC: https://wiki.php.net/rfc/group_ use_ declarations Added null merge operator??. RFC: https://wiki.php.net/rfc/isset_ ternary A 64 bit php7 string can be longer than 2 ^ 31 bytes. Added closure:: call() method. Double quotation string and […]

  • Analysis of modification examples of php7 list(), session and other modules

    Time:2020-10-4

    This paper describes the modification of php7 list (), session and other modules. For your reference, the details are as follows: 1、 List () is no longer assigned in the reverse order list($array[], $array[], $array[]) = [1, 2, 3]; var_dump($array); The above code returns an array: $array = = [1, 2, 3] instead of the […]

  • Example analysis of modifying php7 error handling mechanism

    Time:2020-10-3

    This paper describes the modification of php7 error handling mechanism. For your reference, the details are as follows: 1、 There are now two exception classes: exception and error Php7 now has two exception classes, exception and error. Both classes implement a new interface: throwable. In your exception handling code, type hinting may need to be […]

  • Example analysis of modifying php7 parameter, shaping and string processing mechanism

    Time:2020-10-2

    This paper introduces the modification of php7 parameter, shaping and string processing mechanism. For your reference, the details are as follows: Modification of parameter processing mechanism 1、 Duplicate parameter naming is no longer supported. Duplicate parameter naming is no longer supported. For example, an error will be reported when the following code is executed: public […]

  • Summary of enabling Oracle oci8 extension for Plesk php7

    Time:2020-5-9

    Note: This article is applicable to RHEL / CentOS distribution. Step 1. Install the devel package required to build the custom PHP 7 module # yum install plesk-php70-devel gcc glibc-devel libmemcached-devel zlib-devel make libaio.x86_64 Step 2Download oracle-instantclient12.1-basic-12.1.0.2.0-1.x86 ʄ rpm and oracle-instantclient12.1-devel-12.1.0.2.0-1.x86 ʄ RPM (from Oracle OTN) and upload them to the server. ,  https://www.jb51.net/database/572638.html Step […]

  • Usage example of php7 anonymous class

    Time:2020-4-6

    This article describes the use of php7 anonymous class. To share with you for your reference, as follows: <?php /** * Created by PhpStorm. * User: Itboot * Date: 2019/1/17 * Time: 18:15 */ class An { private $num; protected $age = 15; public function __construct() { $this->num = 1; } protected function bar(): int […]

  • What is orphan process and zombie process in php7

    Time:2020-2-21

    Basic concepts We know that in UNIX / Linux, under normal circumstances, the child process is created through the parent process, and the child process is creating a new process. The ending of the child process and the running of the parent process are asynchronous processes, that is, the parent process can never predict when […]

  • Analysis of multiprocess and example source code of php7

    Time:2020-2-19

    Get ready We all know that PHP is executed by a single process. PHP mainly relies on the server or php-fpm to process multiple concurrent processes and reuse of their processes. However, it is also significant for PHP to realize multiple processes, especially when it processes a large amount of data in the background cli […]

  • Detailed analysis of I / O model kernel in php7

    Time:2020-2-18

    1. Synchronization: a function of my client (C-side caller). Before the function ends, I will wait for the result.2. Asynchronous: I (the caller at the C end) call a function and do not know the result of the function. If the function has a result, I will be notified, that is, callback notification 3. Blocking: […]

  • Detailed explanation of CGI and fastcgi of php7 kernel

    Time:2020-2-16

    CGI: a protocol for data exchange between web server and web application.Fastcgi: it’s a communication protocol with CGI, but it’s more efficient than CGI. Php-cgi: it is the interface program of CGI protocol provided by PHP (web application) to web server. Php-fpm: it is the interface program of fastcgi protocol provided by PHP (web application) […]

  • Summary of new functions of php7

    Time:2020-2-15

    The following is the updated content and knowledge about php7. new function PHP 7 adds many features, the most important of which are as follows • performance improvements – phpng code was incorporated in php7, twice as fast as PHP 5. • lower memory consumption – optimized PHP 7 uses fewer resources. • scalar type […]