Replace calls to flet with cl-flet

The flet macro is obsolete as of Emacs 24.3 and we get warnings from
the byte-compiler for using it.  So we switch over to the newer
cl-flet as its replacement.
Change to using cl-lib in place of the obsolete cl library
Alias cl-flet for older versions of Emacs

The macro flet is obsolete as of Emacs version 24.3, replaced by
cl-flet.  In order to avoid byte-compiler warnings we check to see if
the cl-flet macro is available, and if not we alias it to the old
flet macro.
Update php-mode-modified for the cl-flet related changes
Merge branch 'replace-flet'

* replace-flet:
  Update php-mode-modified for the cl-flet related changes
  Alias cl-flet for older versions of Emacs
  Change to using cl-lib in place of the obsolete cl library
  Replace calls to flet with cl-flet

Conflicts:
	php-mode.el
Fallback on using the cl package if cl-lib is not available

The cl package is obsolete as of GNU Emacs version 24.3, replaced by
cl-lib.  This patch attempts to load cl-lib, but if that fails we load
cl instead.  This addresses warnings from the Elisp byte-compiler when
compiling php-mode with a version older than 24.3.
Indent ‘foreach’ construction without {} block after it

So:

    foreach ($ar as $el)
        print $el;

Now indents properly.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
Add zapad to the list of Contributors
Add all valid flags for htmlspecialchars() to php-constants

The function htmlspecialchars() accepts a number of constants as
flags.  We properly highlight ENT_COMPAT and ENT_NOQUOTES because
those are part of the php-constants list.  But we are missing all of
the rest, like ENT_QUOTES.  This patch adds every flag given in the
documentation for htmlspecialchars():

    http://php.net/manual/en/function.htmlspecialchars.php

Github-issue: 48
Update php-mode-modified for the new year
Update copyright information for 2013
Do not format ‘php-mode’ as code in the README

This patch improves readability in my opinion.  Honestly, looking back
on it I am not sure why I formatted ‘php-mode’ in <code>…</code>
markup to begin with.  Seems stupid in retrospect.
Link to the wiki under the ‘Status’ section of the README for updates
Do not set the statement-cont offset to c-lineup-cascaded-calls

First of all, the functions which set the different coding styles
overwrite this offset value.  Second, in order to properly support
aligning method calls and the indentation support from commit 89eefdf7
we will need to write a custom line-up function for statement-cont
anyways.  So for both reasons we can delete this offset assignment.
Add better heredoc formatting and highlighting support

This code comes from Philippe Ivaldi’s pi-php-mode, with his
permission.  The only modifications to the code are small formatting
changes and moving much of the top to the top-level instead of within
the scope of define-derived-mode.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
Add a test case for Github issue 38, related to heredoc support
Add Philippe Ivaldi to the contributors list for his heredoc code
Add upload error constants to php-constants.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
Add all constants for the cURL module

This list of constants comes from the

    http://us2.php.net/manual/en/curl.constants.php

manual page.

Github-issue: 36
Run whitespace-cleanup on the source code

This patch contains no logic changes.  It only cleans up some
whitespace using a function of Emacs.