Skip to content

Commit 4394249

Browse files
committed
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
2 parents 1b34ab8 + c342c9b commit 4394249

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug #64239 (Debug backtrace changed behavior since 5.4.10 or 5.4.11).
77
(Dmitry, Laruence)
88

9+
- Opcache:
10+
. Fixed bug # 64490 (struct flock undefined on FreeBSD). (Joe Watkins)
11+
912
21 Mar 2013, PHP 5.5.0 Beta 1
1013

1114
- Core:

ext/mysql/tests/mysql_list_fields.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ mysql_field_name(): id
7474
mysql_field_type(): int
7575
Field Offset 1
7676
mysql_field_flags()%s
77-
mysql_field_len(): 1
77+
mysql_field_len(): %s
7878
mysql_field_name(): label
7979
mysql_field_type(): string
8080
done!

ext/opcache/ZendAccelerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#ifndef ZEND_WIN32
9494
extern int lock_file;
9595

96-
# if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)/* Darwin */) || defined(__OpenBSD__) || defined(__NetBSD__)
96+
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (defined(__APPLE__) && defined(__MACH__)/* Darwin */) || defined(__OpenBSD__) || defined(__NetBSD__)
9797
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
9898
struct flock name = {start, len, -1, type, whence}
9999
# elif defined(__svr4__)

ext/pdo_pgsql/tests/is_in_transaction.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ var_dump($db->inTransaction());
5757
?>
5858
--EXPECT--
5959
Test PDO::PGSQL_TRANSACTION_INTRANS
60-
int(2)
60+
bool(true)
6161
Test PDO::PGSQL_TRANSACTION_IDLE
62-
int(0)
62+
bool(false)
6363
Test PDO::PGSQL_TRANSACTION_INERROR
64-
int(3)
64+
bool(true)
6565
Test PDO::PGSQL_TRANSACTION_IDLE
66-
int(0)
66+
bool(false)

sapi/cli/php.1.in

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH PHP 1 "2010" "The PHP Group" "Scripting Language"
1+
.TH PHP 1 "2013" "The PHP Group" "Scripting Language"
22
.SH NAME
33
php \- PHP Command Line Interface 'CLI'
44
.SH SYNOPSIS
@@ -42,6 +42,12 @@ php \- PHP Command Line Interface 'CLI'
4242
.LP
4343
\fBphp \fP[options] \fB\-a\fP
4444
.LP
45+
.B php
46+
[options] \-S
47+
.IR addr:port
48+
[\-t
49+
.IR docroot ]
50+
.LP
4551
.SH DESCRIPTION
4652
\fBPHP\fP is a widely\-used general\-purpose scripting language that is especially suited for
4753
Web development and can be embedded into HTML. This is the command line interface
@@ -78,7 +84,13 @@ and therefore reading from
7884
.B STDIN
7985
explicitly changes the next input line or skips input lines.
8086
.LP
81-
If none of \-r \-f \-B \-R \-F or \-E is present but a single parameter is given
87+
PHP also contains an embedded web server for application development purpose. By using the \-S option where
88+
.B addr:port
89+
point to a local address and port PHP will listen to HTTP requests on that address and port and serve files from the current working directory or the
90+
.B docroot
91+
passed by the \-t option.
92+
.LP
93+
If none of \-r \-f \-B \-R \-F \-E or \-S is present but a single parameter is given
8294
then this parameter is taken as the filename to parse and execute (same as
8395
with \-f). If no parameter is present then the standard input is read and
8496
executed.
@@ -263,6 +275,20 @@ after processing all input lines
263275
Output HTML syntax highlighted source
264276
.TP
265277
.PD 0
278+
.B \-\-server \fIaddr:port\fP
279+
.TP
280+
.PD 1
281+
.B \-S \fIaddr:port\fP
282+
Start embedded Webserver on the given local address and port
283+
.TP
284+
.PD 0
285+
.B \-\-docroot \fIdocroot\fP
286+
.TP
287+
.PD 1
288+
.B \-t \fIdocroot\fP
289+
Specify the document root to be used by the embedded web server
290+
.TP
291+
.PD 0
266292
.B \-\-version
267293
.TP
268294
.PD 1
@@ -435,7 +461,7 @@ contributors all around the world.
435461
.SH VERSION INFORMATION
436462
This manpage describes \fBphp\fP, version @PHP_VERSION@.
437463
.SH COPYRIGHT
438-
Copyright \(co 1997\-2010 The PHP Group
464+
Copyright \(co 1997\-2013 The PHP Group
439465
.LP
440466
This source file is subject to version 3.01 of the PHP license,
441467
that is bundled with this package in the file LICENSE, and is

0 commit comments

Comments
 (0)