English 中文(简体)
Why is "-8+etch15" appended to this customer s PHP version string?
原标题:

I had a customer report a wierd behavior related to PHP-#38146

I did var_dump(phpversion()) and I get:

string(14) "5.2.0-8+etch15" 

What the heck is the -8, and the +etch15, some sort of Debian related extension of PHP? Related to hardened PHP or something? Does this mean they are essentially running a 5.2.0 build?

最佳回答

This section of Debian s documentation might answer some of your questions : 5.6.12 Version (quoting) :

The version number of a package. The format is: [epoch:]upstream_version[-debian_revision]

And (there is more on that page, only quoting parts of it) :

upstream_version
This is the main part of the version number. It is usually the version number of the original ("upstream") package from which the .deb file has been made, if this is applicable. Usually this will be in the same format as that specified by the upstream author(s);

debian_revision
This part of the version number specifies the version of the Debian package based on the upstream version. It may contain only alphanumerics and the characters + . ~ (plus, full stop, tilde)

In your case, with "5.2.0-8+etch15" :

  • "5.2.0" is the upstream_version
  • and "8+etch15" is the debian_revision

Which means, as you guessed, that you are running PHP 5.2.0.

问题回答
ARG_ENABLE( pgi ,  Generate PGO instrumented binaries ,  no );
+ARG_WITH( pgo ,  Compile optimized binaries using training data from folder ,  no );
+if (PHP_PGI == "yes" || PHP_PGO != "no") {
+   PGOMGR = PATH_PROG( pgomgr , WshShell.Environment("Process").Item("PATH"));
+   if (!PGOMGR) {
+       ERROR("--enable-pgi and --with-pgo options can only be used if PGO capable compiler is present.");
+   }
+   if (PHP_PGI == "yes" && PHP_PGO != "no") {
+       ERROR("Use of both --enable-pgi and --with-pgo not allowed.");




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签