


Full records of compiling PHP5.4 and xdebug under Windows, php5.4xdebug_PHP tutorial
Full records of compiling PHP5.4 and xdebug under Windows, php5.4xdebug
In fact, my ultimate goal is to compile php_xdebug.dll that supports PHP5.4, but before that , is necessary to successfully compile PHP5.4.
Compilation environment and related software packages:
1.Microsoft Visual C 2008 Express Edition with SP1
2.Windows SDK 6.1
3.PHP SDK Binary Tools
4.Dependable libs
5.PHP5.4 Sources
6.Xdebug 2.2.0-dev
If you need the VC6 compilation environment, then you need to install Visual C 6.0, and the SDK needs to be replaced with:
Windows Server 2003 PSDK
Compilation process:
Get your coffee and cola ready, it may take several hours...
Install VC 2008 and Windows SDK 6.1
Create the following directory:
Copy code The code is as follows:
D:php-sdk
D:php-sdkphp54dev
D:php-sdkpecl
Unzip all files in php-sdk-binary-tools-20110915.zip to D:php-sdk
Extract the deps directory in deps-5.4-vc9-x86.7z to D:php-sdkphp54dev
Unzip the php5.4 source code to D:php-sdkphp54dev, and choose any directory name, such as php-5.4.0RC3
The source code of xdebug is placed in D:php-sdkpeclxdebug
The final directory structure probably looks like this:
Copy code The code is as follows:
D:php-sdk>tree D:php-sdk
Folder PATH listing for volume DISK_VOL2
Volume serial number is 0C74-AD73
D:PHP-SDK
├───bin
├───php54dev
│ ├───deps
│ │ ├───bin
│ │ ├───include
│ │ ├───lib
│ │ └───sybase
│ ├───pecl
│ │ └───xdebug
│ └───php-5.4.0RC3
├───script
└───share
Open the Windows SDK CMD Shell and execute: setenv /x86 /xp /release. If you are a 64-bit system, this command is necessary. Do not try to change the parameters to /x64, otherwise you will Saw thousands of WARNINGs…
Set PATH: set PATH=D:php-sdkbin;%PATH%
Switch the SHELL directory to D:php-sdkphp54devphp-5.4.0RC3> and execute buildconf to generate the configure script:
Copy code The code is as follows:
D:php-sdkphp54devphp-5.4.0RC3>buildconf
Rebuilding configure.js
Now run 'configure --help'
D:php-sdkphp54devphp-5.4.0RC3>
Execute configure to generate the Make script. You can view configure –help for more compilation options:
Copy code The code is as follows:
D:php-sdkphp54devphp-5.4.0RC3>configure --disable-snapshot-build --disable-debug-pack --disable-ipv6 --disable-zts --disable-isapi --disable-nsapi --without-t1lib --without-mssql --without-pdo-mssql --without-pi3web --without-enchant --enable-com-dotnet --with-mcrypt=static --disable-static-analyze --with-xdebug=shared
Here I used –disable-snapshot-build to turn off the snapshot mode, because this command will force open many options that are useless to me, such as aolserver, apache sapi, etc. Finally, I added –with-xdebug= shared. Before using this option, it is best to confirm that the location of the xdebug source code is correct. If there is no problem, you can see this option in configure –help after buildconf. Shared means compiling into a dynamic link library.
If you want to compile other pecl extensions (such as apc, bcompiler, etc.), you only need to download the relevant source code and put it in the pecl directory and re-execute buildconf.
If there is no problem with configure, finally execute nmake to start the compilation process, Good Luck! :)
The last step is nmake snap, which organizes the directory structure of all compiled files (that is, the structure of the PHP binary package you usually download) and packages it with zip.
The final generated file location: D:php-sdkphp54devphp-5.4.0RC3Release(_TS)
Error handling:
A lot of Warnings will be generated during the nmake process. As long as they are not interrupted, just ignore them.
About the encoding issues of calendar.c and jewish.c:
Copy code The code is as follows:
extcalendarcalendar.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
dow.c
easter.c
french.c
gregor.c
jewish.c
extcalendarjewish.c : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
extcalendarjewish.c(324) : error C2001: newline in constant
extcalendarjewish.c(325) : error C2001: newline in constant
extcalendarjewish.c(326) : error C2001: newline in constant
extcalendarjewish.c(327) : error C2001: newline in constant
NMAKE: fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 9.0VCBincl.exe"' : return code '0x2'
Stop.
These two files use ANSI encoding and contain some Western special characters that do not exist in the GBK character set.
It can be opened with editplus, encoding selection: West European (Windows), and saved as UTF-8.

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software