ID:               41417
 User updated by:  hajo at clansphere dot net
 Reported By:      hajo at clansphere dot net
 Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Irrelevant
 PHP Version:      6CVS-2007-05-17 (snap)
 New Comment:

running shellcode is forbidden on many webservers due to security


Previous Comments:
------------------------------------------------------------------------

[2007-05-17 17:00:52] [EMAIL PROTECTED]

`php -v` shows the build date.
I'm sure it's more than enough if you don't really want to use it in
your scripts.

------------------------------------------------------------------------

[2007-05-17 16:52:23] hajo at clansphere dot net

wouldn't it be good to have issues fixed in snapshots before they
appear to a script when a new final php version is set up on the
webserver?

to have this done i often try out snapshots, and for example php6
triggers strict errors and a few notices that couldn't be seen on php5
in the current versions. they help to make scripts more valid and
flexible. while different developers have different snapshot releases
installed it could be easier when looking at the build date to compare
with.

is there any other way to have the build date available without
workarounds?

------------------------------------------------------------------------

[2007-05-17 16:32:32] [EMAIL PROTECTED]

Well, you should not be using snapshots in production for the first
place.
Second, I don't think it would be useful for anybody except developers,
but then they always use the latest snapshot.
So such a constant makes very little sense for me.

------------------------------------------------------------------------

[2007-05-17 16:13:50] hajo at clansphere dot net

Description:
------------
since not everyone uses php snaps in the same build date it is possible
to have a function work with one and not with another.

so it would be nice to have a predefined constant like PHP_BUILD_DATE
or something like that to echo in a debug mode of a script.

i searched for it on search engines and even some forums without
success. it was just possible to extract it from phpinfo(INFO_GENERAL)
with some code that doesn't work for all php versions the same.

thank you very much

Reproduce code:
---------------
     

Expected result:
----------------
     

Actual result:
--------------
     


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41417&edit=1

Reply via email to