Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Develop #2070

Closed
wants to merge 3,395 commits into from
@Konstrukt

No description provided.

narfbg and others added some commits
@narfbg narfbg [ci skip] Update docblocks for deprecated functions 29d909d
@narfbg narfbg Unify Email attachment values into a single array and fix a bug in th…
…e new buffer attachment feature
b8f9a15
@narfbg narfbg Fix #50 ca20d84
@narfbg narfbg Add database schema configuration support (used by PostgreSQL, fix #158) 485a348
@narfbg narfbg [ci skip] Optimize ascii_to_entities() 7d75346
@narfbg narfbg Docblock improvements 3e9d2b8
@narfbg narfbg Deprecate string helper repeater() (an alias for str_repeat()) 60826db
@narfbg narfbg Docblock improvements to the Config library and remove CI_Config::_as…
…sign_to_config()

Existance of _assign_to_config() is pointless as this method
consists just of a foreach calling CI_Config::set_item() and
is only called by CodeIgniter.php - moved that foreach() in
there instead.
5232ba0
@narfbg narfbg Input class improvements
- Disable register_globals replication on PHP 5.4+ (no longer exists).
- DocBlock improvements.
- Add missing changelog entry.
- Change user_agent() to return NULL when no value is found (for consistency with other fetcher methods).
1887ec6
@narfbg narfbg Make CI_Loader::config() a proper alias for CI_Config::load() and imp…
…rove the Loader class DocBlocks
ed4b258
@vkeranov vkeranov Remove extra new lines bb82969
@vkeranov vkeranov Remove extra space... 2b5b92e
@narfbg narfbg Fix Loader tests 9aced4a
@vkeranov vkeranov Remove extra new lines a5779d0
@vkeranov vkeranov Remove extra new lines 8b9aa17
@vkeranov vkeranov Remove extra new lines a8349bc
@vkeranov vkeranov Remove extra new lines 31b7c33
@vkeranov vkeranov Update system/core/URI.php 2b6b430
@vkeranov vkeranov Style guide... 94b1f76
@vkeranov vkeranov Remove extra new lines bfbe8b2
@vkeranov vkeranov Remove extra new lines 7e4356b
@narfbg narfbg [ci skip] Router class DocBlock improvements b9fe7e9
@vkeranov vkeranov Remove extra spaces... 3bb4029
@narfbg narfbg Merge pull request #1935 from vkeranov/develop
Remove some extra new lines
8113c0f
@narfbg narfbg Fix #1937 44dc50e
@narfbg narfbg [ci skip] DocBlock improvements for Security library 6435410
@narfbg narfbg [ci skip] URI Library DocBlock improvements cca7427
@narfbg narfbg [ci skip] Clarify explanation of the 404_override setting in applicat…
…ion/config/routes.php
51b7acd
@GDmac GDmac Fix #1938
Where the email library removed multiple spaces inside a plain text message.

Signed-off-by: GDmac <grdalenoort@gmail.com>
9bea4be
@narfbg narfbg [ci skip] Alter a changelog entry for 2.1.3 9d82e82
@narfbg narfbg [ci skip] Fix a note in the QB documentation 0dfb62f
@narfbg narfbg Fix issue #658 (:any wildcard matching slashes) 7676c2d
@narfbg narfbg [ci skip] Alter a changelog entry for 2.1.3 759d322
@narfbg narfbg [ci skip] Fix a note in the QB documentation afca803
@GDmac GDmac Description for Fix #1938 added to changelog
Signed-off-by: GDmac <grdalenoort@gmail.com>
7330384
@narfbg narfbg Fix issue #658 (:any wildcard matching slashes) ed17411
@GDmac GDmac Description for Fix #1938 added to changelog (sync)
Conflicts:
	user_guide_src/source/changelog.rst

Signed-off-by: GDmac <grdalenoort@gmail.com>
e1e956d
@narfbg narfbg Merge pull request #1945 from GDmac/develop
Fix #1938
936a8fe
@narfbg narfbg CI_URI::_detect_uri() to accept absolute URIs
(thanks to @sourcejedi, PR #1326)

For HTTP/1.1 compliance, RFC2616 specifies that both relative
and absolute URI formats must be accepted:

- http://localhost/path/ (absolute)
- /path/ (relative)
d4516e3
@narfbg narfbg Multiple improvements to the URI class
(thanks to @sourcejedi, PR #1326 for most of the ideas)

 - Renamed _detect_uri() and _parse_cli_args() to _parse_request_uri() and _parse_argv() respectively.
 - Added _parse_query_string() which allows us to detect the URI path from QUERY_STRING much like it is done in _parse_request_uri().

(the above changes also allow for a simpler logic in the case where the *uri_protocol* setting is not set to 'AUTO')

 - Updated application/config/config.php with a better list of the *uri_protocol* options.
 - Added _reset_query_string() to aid in re-processing  from the QUERY_STRING (utilized in _parse_request_uri() and _parse_query_string()).
f2b19fe
@jdfm jdfm removed conflict markers a9a1d25
@jdfm jdfm Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into …
…develop
3ccc386
@narfbg narfbg Fix an erroneous variable name 704f3f5
@narfbg narfbg Merge pull request #1636 from jdfm/develop
Processed routes
0bae250
@sourcejedi

Does this need changing to $this->_set_uri_string($uri)?

Owner

Yep: 704f3f5

@sourcejedi

This needs to be parse_str($_SERVER['QUERY_STRING'], $_GET)

Also, I believe I remarked somewhere in my commits, parse_str() seems quite capable of handling the empty string. I don't think that case needs special hndling.

Owner

Indeed, ea6688b

@narfbg narfbg Fix issues #388 & #705
(thanks to @sourcejedi, PR #1326 for pointing inconsistencies with RFC2616
9dd2dbb
@sourcejedi

Nice! Simple and powerful.

You went for a slightly different approach than I did. I was thinking QUERY_STRING should always be decoded first, so we would accept something like

index.php?controller/method%3fparam=value

But I prefer your code here - so I looked at RFC3986, and I think your approach is actually fine.

Jonathon Hill and others added some commits
Jonathon Hill Added support for timestamp-based migrations
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
34c8b9c
@narfbg narfbg Fix issue in resetting QUERY_STRING, GET vars introduced in f2b19fe ea6688b
Andrey add russian in foreign_chars.php 30563ff
@GDmac GDmac Fix #1946 dbforge add_key
add_key not setting multiple-column keys when given array

Signed-off-by: GDmac <grdalenoort@gmail.com>
dc6fba5
@narfbg narfbg Changed URI auto-detection to try PATH_INFO first
(thanks to @sourcejedi, PR #1326)

Up until PHP 5.2.4 (which is our new lowest requirement),
there was a bug related to PATH_INFO which made REQUEST_URI
a more reliable choice. This is now no longer the case,
see https://bugs.php.net/bug.php?id=31892 for more details.

Also removed ORIG_PATH_INFO from the suggested alternatives
for uri_protocol in application/config/config.php as it will
not exist in most of PHP's recent versions and is pointless
when you can use PATH_INFO anyway.
3b72eb5
@narfbg narfbg Fix an update_string() bug 87f4dc2
@narfbg narfbg Session cookie driver changes
 - Changed docs CREATE TABLE ci_sessions example to have the PRIMARY KEY of session_id, ip_address and user_agent combined.
 - Changed DB updates to add WHERE clauses for the ip_address and/or user_agent strings if sess_match_ip and/or sess_match_useragent are set to TRUE.
e2afc88
@ivantcholakov

On the line 1578 there is a var_dump output, probably forgotten?

@sourcejedi

Nitpick - you didn't take the getenv() cleanups elsewhere, but you're not using getenv() here.

Owner

The only case where $_SERVER['PATH_INFO'] wouldn't exist is when php.ini's variables_order doesn't include an S and if that's the case - your whole application will be broken, not just URI detection. I'm sure you know this and I assume this is the reason that you proposed all getenv() usage to me removed.
My approach is only a bit different - don't use getenv() in new code, but keep it in old chunks as long as it doesn't cause problems. :)

My guess was a work-around for one of PHP's PATH_INFO bugs, which was then applied to all the other variable accesses.

I wasn't aware of variable_order. It sounds like a nasty scenario to debug, if half of the URI methods could appear to work still (due to getenv())...

I guess there might also be a problem if a CGI script (e.g. bash or perl) started a CodeIgniter app as a sub-command.

Owner

... it will then be routed as a CLI request.

sa and others added some commits
sa russian second letter in lowercase, foreign_chars.php 948f021
@narfbg narfbg Merge pull request #1951 from dronord/develop
add russian in foreign_chars.php
5a111b5
@narfbg narfbg Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop 7f9216c
@narfbg narfbg [ci skip] Add changelog entry for PR #1951 ce1b02a
@narfbg narfbg Fix issue #1953 (form values being escaped twice)
Re-instaing an improved form_prep() function, reverting most of the changes from 74ffd17.
7c4d106
@narfbg narfbg Fix an erroneous variable name 075f6fa
@narfbg narfbg Remove is_numeric() checks from Cart library (superseded by casts to …
…float)
1a9b7e0
@narfbg narfbg Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
c5536aa
@narfbg narfbg [ci skip] Alter form validation examples including the *matches* rule 8161e57
@narfbg narfbg Allow use of dashes in controller/method URI segments
Supersedes PR #642
d1097a1
@narfbg narfbg Fix issue #122 254735e
@narfbg narfbg [ci skip] DocBlocks for Email, Ftp, Unit_test and Javascript libraries
Partially fixes issue #1295
597ea27
@narfbg narfbg [ci skip] DocBlocks for Pagination, Session, Trackback, Jquery libraries
Partially fixes issue #1295
0fa95bd
@narfbg narfbg [ci skip] DocBlocks for Upload and Xmlrpc libraries
Partially fixes issue #1295
f5ccd12
@narfbg narfbg DocBlocks for base DB classes
Partially fixes issue #1295.
ae85eb4
@narfbg narfbg [ci skip] DocBlocks for DB drivers' utility classes
Partially fixes issue #1295.
c98e93a
@narfbg narfbg [ci skip] DocBlocks for DB drivers' result classes
Partially fixes issue #1295.
8463b91
@narfbg narfbg [ci skip] DocBlocks for DB drivers' driver classes
Partially fixes issue #1295.
a24e52e
@narfbg narfbg Router-related optimizations
An improved version of changes suggesed in PR #1352, and more specifically:

sourcejedi@8f7d2df
sourcejedi@d2de251

(thanks again @sourcejedi)
7d394f8
@narfbg narfbg Fix #1956 c3751f8
@narfbg narfbg Fix #1960 8a203f6
@narfbg narfbg Fix a directory/404_override bug and some routing-related optimizations 533bf2d
@narfbg narfbg Some micro-optimizations e24eed7
@narfbg narfbg Bootstrap improvements
 - Don't instantiate the CI singleton twice.
 - General clean-up.
 - Fix issue #953.
38e32f6
@narfbg narfbg Removed CI_Loader::initialize() and moved its logic to the constructor.
That method used to be called by the CI_Controller constructor
and was required because of the possibility to instantiate the
Controller class twice due to 404_override, and so some properties
needed to be reset.

Following the last commit - this is no longer the case.
679525d
@narfbg narfbg An attempt to fix Loader tests 1712f11
@narfbg narfbg Fix the bloody tests dd8d3d3
@narfbg narfbg [ci skip] Correct a changelog entry 28daade
@squaresurf squaresurf Refactored Unit_test in order to remove redundant code.
The Unit_test::run method was adding another dimension to the
Unit_test::$results array. For example:

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [test_name] => first_test
                    [test_datatype] => integer
                    [res_datatype] => integer
                    [result] => passed
                    [file] => ########################################
                    [line] => 60
                    [notes] => Im expecting this test to pass!
                )

        )

    [1] => Array
        (
            [0] => Array
                (
                    [test_name] => second_test
                    [test_datatype] => integer
                    [res_datatype] => boolean
                    [result] => failed
                    [file] => #######################################
                    [line] => 65
                    [notes] => Im expecting this to fail.
                )

        )

)

The above unneeded dimension created a need to loop through an array in the
Unit_test::result method if the method was looping through all results.

Signed-off-by: Daniel Paul Searles <daniel.paul.searles@gmail.com>
d2ae1d1
@squaresurf squaresurf Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into …
…develop
3aca569
@sourcejedi

Could 'function' be '0', if the controller has a _remap() method?

($a='0', empty($a)) == TRUE

Owner

== '' will give the same result, empty() just looks cleaner.
Plus, aside from '0' not being a valid function method - I highly doubt that you'd use _remap() AND an override.

Personally I see empty() on a string-qua-string as ugly. If you let it go when it doesn't matter, then you don't notice it when it does.

It also has that odd double function. We don't need empty() or == here, because we've already tested isset(). I.e. it's equivalent to

$routing['function'] = $routing['function'] ? $routing['function'] : 'index';

IMO the reason to prefer empty() would be to remind you about the edge case... Which then makes you wonder why it's not fixed - === ''. (Or strlen($x) seems to be favoured - and just as efficient - but it doesn't look right if you know C).

@sourcejedi
Owner

It's not like it's wrong ...

Agreed. No big deal, it just catches your eye if you're trying to read it.

@sourcejedi

Aha! This one line is the fix, I take it.

Nope, this part is for default_controller, not 404_override

@sourcejedi

Ok, this is beyond me. I should be able to work out the bug from your description, but I can't see where the bug (or the fix) is :).

The only behaviour change I can find is in the handling of 404_override routes that include method arguments. It looks like you used to be able to put methods arguments in 404_override, just like the "blogs/users/34" example in the manual. And now it looks like that will cause a failure, because the 'method' will be set to "users/34". (Not that I think many people will try to do that - just making an observation).

Owner

Y U no look at 28daade? :)

Hah, so I did find the bugfix the first time round :). Thanks.

hi, just some heads up

at this changes system/core/Router.php at line 188

                // Is the method being specified?
        if (sscanf($this->default_controller, '%[^/]/%s', $class, $method) !== 2)
        {
            $method = 'index';
        }

        $this->set_class($class);
        $this->set_method($method);
        $this->_set_request(array($class, $method));

https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview
breaks the HMVC plugin if longer URL segment request (in this case is in the default controller). like domain.com/module/controller/method/param-n


   echo $class; //  'module'
   echo $method; //  'controller/method'

i think the whole point here the old code it work with the HMVC plugin

                // Is the method being specified?
        if (strpos($this->default_controller, '/') !== FALSE)
        {
            $x = explode('/', $this->default_controller);
            $this->set_class($x[0]);      // 'module'
            $this->set_method($x[1]);  // 'controller'
            $this->_set_request($x);    //  entire array dumped in <-- i think this makes the whole things works  
        }

the override method in routing by the routing is

https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/src/c6ae8adb1ecc09be6e6924492347660747f269c1/third_party/MX/Router.php?at=default

MX_Router::_validate_request
MX_Router::fetch_module
MX_Router::locate
MX_Router::set_class

sorry for my bad english, hope you understand what i trying to say.

Owner

HMVC is NOT an officially supported feature and router code was ever intended to allow a third-party plugin to work. You should never have more than 2 segments in the default_controller setting and in fact, I believe even the possibility to specify a method in it is an extra one (considering the setting name).

okay, i understand :), just drop a comment here for people for look into this if they encounter this issue.

Razican and others added some commits
@Razican Razican Fixed typo in logs. fc2fbc5
@narfbg narfbg Revert 679525d
It appears to break get_instance()->*_package_path*() usage which is very common.
Need to figure out how to resolve this.
cdac248
@Razican

As seen in #1964 The if clause shouldn't be there.

@Razican

Thanks, I was getting mad about this :D

narfbg and others added some commits
@narfbg narfbg Merge pull request #1962 from squaresurf/d2ae1d1d7fdc4b8a21369a25487c…
…2c42e5a496bf

Refactored Unit_test in order to remove redundant code.
b1b1528
@narfbg narfbg Fix #98 a3f5c5c
@narfbg narfbg Fix #708 7b18a3f
@alexbilbie alexbilbie Merge pull request #1948 from GDmac/develop
Fix #1946 dbforge add_key
f4a448e
@alexbilbie alexbilbie Merge pull request #1730 from damao/develop
Fix / Disallowed Key Characters.
8e8937b
@narfbg narfbg Revert usage of is_callable() in system/core/CodeIgniter.php
Seems to be causing issues (see #1970).
Also updated the Controller docs, mainly to include an important note related to #1967.
522c736
@narfbg narfbg Fix DB drivers version() implementations that don't execute a query
Fails if called prior to the DB connection initialization.
2b73037
@narfbg narfbg Refactored DB Forge
- PDO subdrivers are isolated from each other now.
- Added compatibility for pretty much all of the features, for every DB platform.
- Unified the way that stuff works in general.
- Fixes issue #1005.
a287a34
@narfbg narfbg Fix Forge add_column() and modify_column() 137a742
@narfbg narfbg Re-fix multiple-column non-primary key indexes d743cdb
@squaresurf squaresurf Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into …
…develop
0e4069b
@squaresurf squaresurf Fixed typo in unit testing documentation.
There was a reference to a non-existent Unit_test::set_items method when
it should be Unit_test::set_test_items.
7ffaea4
@narfbg narfbg Added possibility to pass custom database objects to DB Forge and DB …
…Utilities

Also, their  property is no longer public and the utility class no longer extends CI_DB_forge.
eaa60c7
@narfbg narfbg Merge pull request #1974 from squaresurf/unit_testing_doc_typo
Fixed typo in unit testing documentation.
dc83e04
@squaresurf squaresurf Fixed a grammatical typo. b7869fb
@narfbg narfbg Merge pull request #1975 from squaresurf/develop
Fixed a grammatical typo.
7ec4480
@narfbg narfbg Fix an escape_identifiers() bug a7ddd2d
@narfbg narfbg Add an optional escape parameter to insert() and insert_batch()
"Fixes" #1895
bdd9c11
@narfbg narfbg Fix #589 083e3c8
@narfbg narfbg Fix a lang key typo 8d3afde
@narfbg narfbg Display DB object names in the Profiler and fix issue #1220 55a8c62
@narfbg narfbg Added CI_Input::input_stream()
Helps in reading php://input stream data by caching it when accessed for the first time.

(supersedes PR #1684)
303eef0
@narfbg narfbg Fix issue #1978 ba77f8a
@narfbg narfbg Fix directory_map() tests ac68a3c
@narfbg narfbg directory_map() ... the final one e8b8904
@narfbg narfbg [ci skip] Update the upgrade instructions 17e11cd
@narfbg narfbg Added function_usable() to common functions
It is now used to check whether dangerous functions like eval() and exec() are available.
It appears that the Suhosin extension (which is becoming popular) terminates script
execution instead of returning e.g. FALSE when it has a function blacklisted.
function_exists() checks are insufficient and our only option is to check the ini
settings here.

Filed an issue here: stefanesser/suhosin#18
... hopefully we'll be able to deal with this in a more elegant way in the future.

(this commit supersedes PR #1809)
e9d2dc8
@narfbg narfbg Change route type checks priorities 96ea528
@narfbg narfbg Fix #1985 e8b8963
@narfbg narfbg Revert 96ea528 da5562a
@narfbg narfbg Another router fix for the dumbest usage of callbacks ever e2b0754
@narfbg narfbg Deprecate the Email helper 0898e23
@narfbg narfbg Polish docs for Array, CAPTCHA, Cookie, Date, Directory and Download …
…helpers
48a8675
@it-can

so in 3.1 there is no function to validate an email address? you have to create one yourself?

Owner

Did you read the notes at all?

(bool) filter_var($email, FILTER_VALIDATE_EMAIL);

... this is all that valid_email() does.

Does this affect the Validation Library's option to have valid_email?

Owner

No, the library has its own valid_email() method to be used as a rule.

narfbg and others added some commits
@narfbg narfbg Polish docs for the File and Form helpers f6d9a7c
@narfbg narfbg Polish docs for HTML, Inflector, Language, Number, Path, Security and…
… Smiley helpers

Also fixed a DB_cache bug introduced in previous commit and removed an unused parameter in a smiley helper
53b8ef5
@narfbg narfbg Deprecate String helper trim_slashes()
trim(, '/') is even shorter ...
f7c39d6
@narfbg narfbg Polish docs for String, Text and Typography helpers 442682e
@narfbg narfbg Polish docs for URL and XML helpers and deprecate obsolete options fo…
…r String helper random_string() and URL helper url_title()
08f0f8b
@narfbg narfbg Polish the Common functions documentation 1bc3026
@narfbg narfbg [ci skip] Polish docs in user_guide_src/source/general/ 16a704c
@narfbg narfbg Move the Log class to system/core/
It is a core class after all, I guess somebody forgot it when the rest of them were moved.
0aeee85
@narfbg narfbg Move Log class to core in tests as well 1f884d6
@narfbg narfbg Fix DBForge index creation on MySQL and CUBRID b0a97c1
@narfbg narfbg Bring back the AFTER clause for DB Forge add_column()
(it was temporarily removed due to multiple inconsistencies with other drivers)

This commit also fixes issue #1988.
Also added support for the FIRST clause (again, MySQL and CUBRID only).
b67277b
@narfbg narfbg Fix issue #777 12d7b46
@vkeranov vkeranov Let's follow the style guide... d008c97
@narfbg narfbg Merge pull request #1991 from vkeranov/develop
Let's follow the style guide...
a9ab46d
Jonathon Hill Fixed a mismatched constraint value when creating the migration table
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
275cf27
Jonathon Hill Merge remote-tracking branch 'upstream/develop' into develop
Conflicts:
	user_guide_src/source/changelog.rst

Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
3978fc3
Jonathon Hill Changed the `migration_style` config setting to `migration_type`
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
b719bfd
@narfbg narfbg Some micro-optimizations 7a7ad78
@narfbg narfbg Remove 'services' directive from .travis.yml
According to the Travis docs at http://about.travis-ci.org/docs/user/database-setup/,
mysql and postgre are started on boot (and therefore don't need manual a start), while
we all know that sqlite is not a service and doesn't need that either.
de00a69
@narfbg narfbg Fix issue #1992 fe367a9
Jonathon Hill Fixed a typo
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
49c5eda
Jonathon Hill Code style fixes
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
02ea66e
@narfbg narfbg Fix issue #1994 9e94576
Jonathon Hill Improved code readability 4ddf944
Jonathon Hill Fixed an issue with my merge
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
93f989b
@narfbg narfbg Add seed values support for Query Builder order_by
(feature request #1987)
98e46cf
@narfbg narfbg Merge pull request #1949 from compwright/develop
Added support for timestamp-based migrations
5d5bc05
@narfbg narfbg Clean-up following PR #1949 39eb806
@narfbg narfbg Merge pull request #1258 from cryode/feature/robot_mobile
Add mobile detection to robot user agents.
2978d77
@narfbg narfbg [ci skip] Add changelog entry for PR #1258 324762b
@narfbg narfbg Fix some DB_cache-related issues 83b2b1c
@narfbg narfbg Fix PostgreSQL WHERE with boolean values 02e4cd7
@narfbg narfbg [ci skip] Cosmetic changes to the 'News section' tutorial 878c4bd
Brian Gottier Better debugging for DB Cache path 51c0b55
Brian Gottier Changes per narfbg 4a18c95
@narfbg narfbg Merge pull request #1998 from skunkbad/develop
Better debugging for DB Cache path
20209d6
@keatliang2005

Hi @narfbg,

this changes at system/libraries/Form_validation.php

cause this rule to fail

regex_match[/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*$/]

it will throw a notice error

preg_match()[function.preg-match]: No ending delimiter '/' found
Owner

Does reverting this one fix it?
7a7ad78#L4R673

@narfbg
Owner

Shouldn't single quotes be used here? The double ones are the standard field escape character.

Owner

On one point I agree - It is a good starting point, indeed.:)

Otherwise, in Postgre you need to use a separate CREATE TYPE statement in order to use ENUM (no SET data type, AFAIK) and while MySQL, CUBRID and MSSQL might use backticks and square brackets, all of them can also use the double quotes (configurable). I don't know of a database that doesn't use single quotes to start and close strings. :)

356d4f4

sourcejedi and others added some commits
@sourcejedi sourcejedi Documentation: fix typos in name of application folder
The name is "application/", not "applications/".

(This commit does not change managing_apps.rst,
 where "applications/" is used intentionally).
a51f8ec
@narfbg narfbg Merge pull request #2007 from sourcejedi/doc-typo-applications
Documentation: fix typos in name of application folder
78ca024
@TedThiCo TedThiCo Update system/database/drivers/sqlsrv/sqlsrv_driver.php
Connection error if database name contains space-characters. 
Use of MSSQL brackets => 
'USE [Database Name]' 
instead of 
'USE Database Name'
2f32890
@narfbg narfbg DB forge to use single quotes for ENUM/SET string delimiters 356d4f4
@TedThiCo TedThiCo Update system/database/drivers/sqlsrv/sqlsrv_driver.php d0822ce
@narfbg narfbg Merge pull request #2009 from Eco91/patch-2
SQLSRV - Connection error if database name contains space-characters
52e7b24
@narfbg narfbg Fix #18 a2b0677
@narfbg narfbg Fix CI_Input::get() and CI_Input::post() not returning array when a k…
…ey is not specified
77bd21b
@narfbg narfbg Update tests following 77bd21b 87c7813
@narfbg narfbg Fix an E_NOTICE d337a26
@narfbg narfbg Fix issue #2015 3a5efc2
@narfbg narfbg Fix #1996 342bb7e
@narfbg narfbg Change fs permissions and add some missing index.html files (#2017) 2eaeee5
@narfbg narfbg Fix modify_column() issues (#2020) 7ade8b7
@narfbg narfbg Manually apply a fix submitted via PR #2012, #2016 2b24139
@narfbg narfbg [ci skip] Fix a typo in the styleguide 93f5c5d
@narfbg narfbg Added support for stream-like downloads of existing files to force_do…
…wnload()

Based on code/ideas from PR #365, #1254
53fff91
@narfbg narfbg Fix issue #118 (manually implementing PR #1832) ce0c956
@ivantcholakov ivantcholakov 3.0.0-dev: Fixing the issue #2023.
CI_Cart initialization: Session data presense should be tested against NULL, not FALSE.
29453cd
@narfbg narfbg Merge pull request #2024 from ivantcholakov/develop
3.0.0-dev: Fixing the issue #2023.
1b7a452
@narfbg narfbg Fix #113 2d48b4f
@vkeranov

maybe you should remove the second semicolon?

narfbg and others added some commits
@narfbg narfbg [ci skip] Remove a lone semicolon (rel 2d48b4f) 44c3463
@vkeranov vkeranov Minor changes to Xmlrpc.php b497d2b
@vkeranov vkeranov Minor changes to Xmlrpcs.php 52de379
@narfbg narfbg Merge pull request #2025 from vkeranov/develop
Some minor changes to Xmlrpc.php and Xmlrpcs.php
a815dbf
@johnathancroom johnathancroom keep_flashdata accepts array 4beca5c
@tocaibiza tocaibiza Bug fix - optimize_table() in DB utility class 34cadee
@narfbg narfbg Merge pull request #2028 from tocaibiza/develop
Bug fix - optimize_table() in DB utility class
ad5f1d0
@johnathancroom johnathancroom Requested changed to keep_flashdata 9d9849b
@dchill42 dchill42 Added support for extending individual driver classes and driver unit…
… tests

Signed-off-by: dchill42 <dchill42@gmail.com>
6262d05
@dchill42 dchill42 Replaced Mock_Core_Lang with PHPUnit mockups
Signed-off-by: dchill42 <dchill42@gmail.com>
1713d32
@narfbg narfbg Merge pull request #2030 from dchill42/unit_tests
Replaced Mock_Core_Lang with PHPUnit mockups
ade05b4
@narfbg narfbg Merge pull request #2029 from dchill42/driver_ext
Added driver extension support
89ecc8a
@narfbg narfbg Revert some of the changes from PR #2029
We have file naming conventions and any extension filename needs to match MY_<orig_filename>,
so we don't need to check for lowercase equivalents.
7e83f32
@narfbg narfbg MySQLi tests 79980e4
@narfbg narfbg create database for mysqli tests b8c4e48
@narfbg narfbg Fix #2027 3545102
@johnathancroom johnathancroom Improved array keey_flashdata + Changelog 8d8543d
@johnathancroom johnathancroom Changelog change 3892995
@narfbg narfbg Merge pull request #2026 from johnathancroom/keep_flash_data_array
keep_flashdata accepts array
f5513d6
@narfbg narfbg Manually implement PR #2033
Check for an empty encryption_key shouldn't use strict comparison.
4abd094
@narfbg narfbg Switch CI_Form_validation:: to public
Makes it easier to access the data after validation (issue #1208)
cff3580
@narfbg narfbg CI_Email::print_debugger() option to limit the type of data to be pri…
…nted

(an alternative to PR #1759; partially solves issue #1742)
61797f6
@narfbg narfbg Add 'valid_url' rule to Form Validation (issue #1966) daaca88
@narfbg narfbg Implement cascade-style loading of language files
(as requested in issue #452)
b11b9f3
@narfbg narfbg Language helper lang() to accept optional HTML attributes
(an improved version of PR #1235)
3b40706
@narfbg narfbg Update Language helper test case feb1e05
@narfbg narfbg Fix some erroneous variable names (sorry) 719b60f
@williamknauss williamknauss Children Drivers
This allows developers to create children drivers that are not prefix
with "CI_". This is a nity grity change, however it keeps with the
mindset that class names that start with CI_ are typically overrides of
core classes.
401fb49
@williamknauss williamknauss Remove Comment
As requested removed useless comment
0ab4d3a
@narfbg narfbg Merge pull request #2036 from williamknauss/develop
Children Drivers
539f34e
@narfbg narfbg Fix #2037 e1d6c46
@narfbg narfbg Added CI_Output::get_header()
(an improved version of PR #645)

Also fixed get_content_type() to only return the MIME value and created
Output library unit tests for both of these methods.
cc4b003
@narfbg narfbg Fix #2041 4173823
@narfbg narfbg Add CI_Output::delete_cache()
(an improved version of PR #609)
b37d2bc
@johnathancroom johnathancroom keep_flashdata array test 66b36ef
@narfbg narfbg Merge pull request #2043 from johnathancroom/keep_flash_data_array
Test for keep_flashdata accepting an array
74ad0bb
@vlakoff vlakoff config->site_url() optimizations
- direct access to config array, instead of item() calls
- the string cast is just in case 'url_suffix' would be set to false or null; the function produces the same results without this cast, but it leads to a robuster code, as false and null are sanitized and skip the suffix insertion code
- altered conditional structure: if no suffix, skip the appending of an empty string to $uri
66cb413
@vlakoff vlakoff config->site_url(): remove useless cast
thanks to narfbg
4d9fd19
@narfbg narfbg Merge pull request #2048 from vlakoff/develop
config->site_url() optimizations
6a38949
@narfbg narfbg [ci skip] Cleaned some spaces 838a9d6
@narfbg narfbg Improve schema support for Postgre 0259d12
@narfbg narfbg Add min_width and min_height options to the Upload class
(manually implementing outdated PR #636)
05aa2d6
@narfbg narfbg Fix postgre db_connect() c07c485
@narfbg narfbg Rename DB_result _data_seek() to data_seek() and make it publicly ava…
…ilable

(as requested in #2050)
69edc43
@narfbg narfbg Remove CI_DB_oci8_result::data_seek()
It can only call oci_execute() in order to reset the pointer to 0,
the oci8 driver doesn't support setting the pointer.

Due to the result_object(), result_array() and custom_result_object()
calling data_seek() every time prior to fetching the result set, this
only causes the query to be executed twice. All of the three methods
now cast from existing result_object and/or result_array sets, so the
probability to ever need to really fetch the result set again is
practically zero and so this method doesn't bring any benefit.
fd24adf
@chernjie chernjie Bug fix for relative directory removal
This fixes two bugs:
- for segments that ends with ".." e.g. /user/username../details, this should not be replaced
- current solution only replace double slashes, this solutions removes the infinite number of recurring slashes
af3bd3e
@chernjie chernjie Updated formatting and styleguide, thanks narfbg; 0bf9cfa
@narfbg narfbg Merge pull request #2055 from chernjie/develop
Bug fix for relative directory removal
3fd3345
@narfbg narfbg Another use of CI_URI::_remove_relative_directory() b2280ce
@narfbg narfbg Fix issue #2061 9515dd3
@narfbg narfbg [ci skip] Correct a changelog entry c1c99d5
@aaronadamsTO aaronadamsTO Added changelog entry.
Signed-off-by: Aaron Adams <aaron@aaronadams.ca>
5c54f18
@aaronadamsTO aaronadamsTO While most of CodeIgniter supports protocol-relative URLs, a few URL …
…helpers do not.

Most notably, redirect('//www.facebook.com/aaronadams') led my browser to https://aaronadams.ca/index.php/www.facebook.com/aaronadams.

In this commit, I have fixed the header() helper, along with the anchor() and anchor_popup() helpers, to be compatible with protocol-relative URLs.

Signed-off-by: Aaron Adams <aaron@aaronadams.ca>
16800e4
@narfbg narfbg Merge pull request #2059 from aaronadamsTO/develop
Fix URL helpers to recognize protocol-relative URLs.
545a7c8
@cryode cryode Merge branch 'refs/heads/develop' into feature/form_error_msgs
Conflicts:
	system/language/english/form_validation_lang.php
	user_guide_src/source/libraries/form_validation.rst

Signed-off-by: Eric Roberts <eric@cryode.com>
b9e35f2
@cryode cryode Format tweaks
Signed-off-by: Eric Roberts <eric@cryode.com>
24a13f5
@cryode cryode Find/replace oopsie.
Signed-off-by: Eric Roberts <eric@cryode.com>
7728e74
@cryode cryode Remove slash!
Signed-off-by: Eric Roberts <eric@cryode.com>
d6a1902
@narfbg narfbg Merge pull request #961 from cryode/feature/form_error_msgs
Improved form validation rule error messages.
749f250
@narfbg narfbg Fix issue #539
Form validation language line keys were not prefixed. They are
now prefixed with 'form_validation_' in order to avoid collisions.
The old keys will still work if a prefixed match is not found, but
are DEPRECATED and will be removed in the next major version.

Also added upgrade notes and changelog entries for the new error
message format from PR #961.
d4eec9f
@narfbg
Owner

If you're changing from develop, don't target 2.1-stable, this is impossible to review.

@narfbg narfbg closed this
@sourcejedi

Ok, so you decided CI needed a workaround. But why stripslashes() here? This function is for HTML, not SQL.

Owner

I don't remember why I've done it at the time, probably the old function did it. Feel free to submit a pull request on it. :)

@keatliang2005

function_usable seems like not working at my linux server and my mac osx MAMP installation. i don't have popen disabled

while checking with function_usable('popen') always return false. any idea ? email lib using sendmail so kinda need popen, for now as workaround i manually remove the checking on function_usable('popen') at Email.php at line 1736

this is my linux environment

213/3904MB  3.90 2.45 2.07 2/282 12432
[12381:12375 0:1001] 02:55:41 Mon Dec 17 [root@server.###:/dev/pts/1 +1] ~ 
(1:1001)# php -v
PHP 5.3.19 (cli) (built: Nov 29 2012 15:07:30) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with XCache v2.0.1, Copyright (c) 2005-2012, by mOo
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
259/3904MB  3.46 2.40 2.06 3/278 12505
[12381:12375 0:1002] 02:55:47 Mon Dec 17 [root@server.###:/dev/pts/1 +1] ~ 
(1:1002)# php -i
phpinfo()
PHP Version => 5.3.19

System => Linux server.### 2.6.18-238.5.1.el5 #1 SMP Fri Apr 1 18:41:58 EDT 2011 x86_64
Build Date => Nov 29 2012 15:06:42
Configure Command =>  './configure'  '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-intl' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-icu-dir=/usr' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
PHP Extension Build => API20090626,NTS
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with XCache v2.0.1, Copyright (c) 2005-2012, by mOo
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH


 _______________________________________________________________________


Configuration

bcmath

BCMath support => enabled

Directive => Local Value => Master Value
bcmath.scale => 0 => 0

calendar

Calendar support => enabled

Core

PHP Version => 5.3.19

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => exec,passthru,shell_exec,system,proc_open,curl_multi_exec,show_source => exec,passthru,shell_exec,system,proc_open,curl_multi_exec,show_source
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => error_log => error_log
error_prepend_string => no value => no value
error_reporting => 22519 => 22519
exit_on_timeout => Off => Off
expose_php => Off => Off
extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20090626 => /usr/local/lib/php/extensions/no-debug-non-zts-20090626
file_uploads => On => On
highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="color: #FFFFFF">#FFFFFF</font>
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/lib/php:/usr/local/lib/php => .:/usr/lib/php:/usr/local/lib/php
log_errors => On => On
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 64M => 64M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => no value => no value
safe_mode => Off => Off
safe_mode_exec_dir => /usr/local/php/bin => /usr/local/php/bin
safe_mode_gid => On => On
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 10M => 10M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.enable_gc => On => On

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.24.0
Age => 3
Features
AsynchDNS => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
Largefile => Yes
NTLM => Yes
SPNEGO => No
SSL => Yes
SSPI => No
krb4 => No
libz => Yes
CharConv => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host => x86_64-unknown-linux-gnu
SSL Version => OpenSSL/0.9.8b
ZLib Version => 1.2.3

date

date/time support => enabled
"Olson" Timezone Database Version => 2012.10
Timezone Database => external
Default timezone => Asia/Kuala_Lumpur

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => Asia/Kuala_Lumpur => Asia/Kuala_Lumpur

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.0
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ereg

Regex Library => Bundled library enabled

filter

Input Validation and Filtering => enabled
Revision => $Id: 2b8c730d7dfaa8485d07cd792f0c82852ffe4113 $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled

gd

GD Support => enabled
GD Version => bundled (2.0.34 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.2.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.2.10
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.5

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

imap

IMAP c-Client Version => 2007f
SSL Support => enabled
Kerberos Support => enabled

intl

Internationalization support => enabled
version => 1.1.0
ICU version => 3.6

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0

json

json support => enabled
json version => 1.2.1

libxml

libXML support => active
libXML Compiled Version => 2.9.0
libXML Loaded Version => 20900
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 4.7.1

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mcrypt

mcrypt support => enabled
mcrypt_filter support => enabled
Version => 2.5.8
Api No => 20021217
Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream 

Directive => Local Value => Master Value
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.0.96
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /var/lib/mysql/mysql.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib64 -lmysqlclient 

Directive => Local Value => Master Value
mysql.allow_local_infile => On => On
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL Header Version => OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.21 2011-12-12

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => sqlite, sqlite2, mysql

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => 5.0.96

Directive => Local Value => Master Value
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.7.7.1

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.1
Phar API version => 1.1.1
SVN revision => $Id: 7b7d559811a842dc9e7d33777a8f993aa2b9933d $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => disabled (install pecl/bz2)
OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: c00b7465003bf16b27764ccaea3c159ca2e4419d $

Reflection

Reflection => enabled
Version => $Id: 593a0506b01337cfaf9f63ebc12cd60523fc2c41 $

session

Session Support => enabled
Registered save handlers => files user sqlite 
Registered serializer handlers => php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Id: 236859686f5942354e440a6084ec07673710ab6c $
Schema support => enabled

sockets

Sockets Support => enabled

SourceGuardian

SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 8.2
SourceGuardian Loader Build Number => 0x00000011
phpSHIELD Support => enabled

Directive => Local Value => Master Value
sourceguardian.restrict_unencoded => 0 => 0

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite

SQLite support => enabled
PECL Module version => 2.0-dev $Id$
SQLite Library => 2.8.17
SQLite Encoding => iso8859

Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0

sqlite3

SQLite3 support => enabled
SQLite3 module version => 0.7-dev
SQLite Library => 3.7.7.1

Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=,fieldset= => a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent => no value => no value

suhosin


This server is protected with the Suhosin Extension 0.9.33

Copyright (c) 2006-2007 Hardened-PHP Project
Copyright (c) 2007-2012 SektionEins GmbH

Directive => Local Value => Master Value
suhosin.apc_bug_workaround => Off => Off
suhosin.cookie.checkraddr => 0 => 0
suhosin.cookie.cryptdocroot => On => On
suhosin.cookie.cryptkey => [ protected ] => [ protected ]
suhosin.cookie.cryptlist => no value => no value
suhosin.cookie.cryptraddr => 0 => 0
suhosin.cookie.cryptua => On => On
suhosin.cookie.disallow_nul => 1 => 1
suhosin.cookie.disallow_ws => 1 => 1
suhosin.cookie.encrypt => Off => Off
suhosin.cookie.max_array_depth => 50 => 50
suhosin.cookie.max_array_index_length => 64 => 64
suhosin.cookie.max_name_length => 64 => 64
suhosin.cookie.max_totalname_length => 256 => 256
suhosin.cookie.max_value_length => 10000 => 10000
suhosin.cookie.max_vars => 100 => 100
suhosin.cookie.plainlist => no value => no value
suhosin.coredump => Off => Off
suhosin.disable.display_errors => Off => Off
suhosin.executor.allow_symlink => Off => Off
suhosin.executor.disable_emodifier => Off => Off
suhosin.executor.disable_eval => Off => Off
suhosin.executor.eval.blacklist => no value => no value
suhosin.executor.eval.whitelist => no value => no value
suhosin.executor.func.blacklist => no value => no value
suhosin.executor.func.whitelist => no value => no value
suhosin.executor.include.allow_writable_files => On => On
suhosin.executor.include.blacklist => no value => no value
suhosin.executor.include.max_traversal => 0 => 0
suhosin.executor.include.whitelist => no value => no value
suhosin.executor.max_depth => 0 => 0
suhosin.filter.action => no value => no value
suhosin.get.disallow_nul => 1 => 1
suhosin.get.disallow_ws => 0 => 0
suhosin.get.max_array_depth => 50 => 50
suhosin.get.max_array_index_length => 64 => 64
suhosin.get.max_name_length => 64 => 64
suhosin.get.max_totalname_length => 256 => 256
suhosin.get.max_value_length => 512 => 512
suhosin.get.max_vars => 100 => 100
suhosin.log.file => 0 => 0
suhosin.log.file.name => no value => no value
suhosin.log.phpscript => 0 => 0
suhosin.log.phpscript.is_safe => Off => Off
suhosin.log.phpscript.name => no value => no value
suhosin.log.sapi => 0 => 0
suhosin.log.script => 0 => 0
suhosin.log.script.name => no value => no value
suhosin.log.syslog => no value => no value
suhosin.log.syslog.facility => no value => no value
suhosin.log.syslog.priority => no value => no value
suhosin.log.use-x-forwarded-for => Off => Off
suhosin.mail.protect => 0 => 0
suhosin.memory_limit => 0 => 0
suhosin.mt_srand.ignore => On => On
suhosin.multiheader => Off => Off
suhosin.perdir => 0 => 0
suhosin.post.disallow_nul => 1 => 1
suhosin.post.disallow_ws => 0 => 0
suhosin.post.max_array_depth => 50 => 50
suhosin.post.max_array_index_length => 64 => 64
suhosin.post.max_name_length => 64 => 64
suhosin.post.max_totalname_length => 256 => 256
suhosin.post.max_value_length => 1000000 => 1000000
suhosin.post.max_vars => 1000 => 1000
suhosin.protectkey => On => On
suhosin.request.disallow_nul => 1 => 1
suhosin.request.disallow_ws => 0 => 0
suhosin.request.max_array_depth => 50 => 50
suhosin.request.max_array_index_length => 64 => 64
suhosin.request.max_totalname_length => 256 => 256
suhosin.request.max_value_length => 1000000 => 1000000
suhosin.request.max_varname_length => 64 => 64
suhosin.request.max_vars => 1000 => 1000
suhosin.server.encode => On => On
suhosin.server.strip => On => On
suhosin.session.checkraddr => 0 => 0
suhosin.session.cryptdocroot => On => On
suhosin.session.cryptkey => [ protected ] => [ protected ]
suhosin.session.cryptraddr => 0 => 0
suhosin.session.cryptua => Off => Off
suhosin.session.encrypt => On => On
suhosin.session.max_id_length => 128 => 128
suhosin.simulation => Off => Off
suhosin.sql.bailout_on_error => Off => Off
suhosin.sql.comment => 0 => 0
suhosin.sql.multiselect => 0 => 0
suhosin.sql.opencomment => 0 => 0
suhosin.sql.union => 0 => 0
suhosin.sql.user_postfix => no value => no value
suhosin.sql.user_prefix => no value => no value
suhosin.srand.ignore => On => On
suhosin.stealth => On => On
suhosin.upload.disallow_binary => 0 => 0
suhosin.upload.disallow_elf => 1 => 1
suhosin.upload.max_uploads => 25 => 25
suhosin.upload.remove_binary => 0 => 0
suhosin.upload.verification_script => no value => no value

timezonedb

Alternative Timezone Database => enabled
Timezone Database Version => 2012.10

tokenizer

Tokenizer Support => enabled

XCache

XCache Support => enabled
Version => 2.0.1
Modules Built => cacher
Readonly Protection => N/A
Cache Init Time => 1970-01-01 07:30:00
Cache Instance Id => 0
Opcode Cache => disabled
Variable Cache => disabled
Shared Memory Schemes => mmap

Directive => Local Value => Master Value
xcache.admin.enable_auth => On => On
xcache.cacher => On => On
xcache.coredump_directory => no value => no value
xcache.count => 8 => 8
xcache.experimental => Off => Off
xcache.gc_interval => 0 => 0
xcache.mmap_path => /dev/zero => /dev/zero
xcache.readonly_protection => Off => Off
xcache.shm_scheme => mmap => mmap
xcache.size => 32M => 32M
xcache.slots => 8K => 8K
xcache.stat => On => On
xcache.test => Off => Off
xcache.ttl => 0 => 0
xcache.var_count => 8 => 8
xcache.var_gc_interval => 300 => 300
xcache.var_maxttl => 0 => 0
xcache.var_size => 32M => 32M
xcache.var_slots => 8K => 8K
xcache.var_ttl => 0 => 0

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.0

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zip

Zip => enabled
Extension Version => $Id: 75f98b591f6e5b656786b38e42f0ca759a8eca80 $
Zip version => 1.11.0
Libzip version => 0.10.1

zlib

ZLib Support => enabled
Stream Wrapper support => compress.zlib://
Stream Filter support => zlib.inflate, zlib.deflate
Compiled Version => 1.2.3
Linked Version => 1.2.3

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
HOSTNAME => server.###
TERM => xterm-256color
SHELL => /bin/bash
HISTSIZE => 1000
SSH_CLIENT => ###CENSORED### 58889 ###CENSORED###
SSH_TTY => /dev/pts/1
LC_ALL => en_US.UTF-8
USER => root
LS_COLORS =>  
MAIL => /var/spool/mail/root
PATH => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
INPUTRC => /etc/inputrc
PWD => /root
JAVA_HOME => /usr/local/jdk
EDITOR => pico
LANG => en_US.UTF-8
SHLVL => 1
HOME => /root
LANGUAGE => en_US.UTF-8
LS_OPTIONS => --color=tty -F -a -b -T 0
LOGNAME => root
VISUAL => pico
CVS_RSH => ssh
CLASSPATH => .:/usr/local/jdk/lib/classes.zip
SSH_CONNECTION => CENSORD
LC_CTYPE => UTF-8
LESSOPEN => |/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES => 1
_ => /usr/local/bin/php

PHP Variables

Variable => Value
_SERVER["HOSTNAME"] => server.###
_SERVER["TERM"] => xterm-256color
_SERVER["SHELL"] => /bin/bash
_SERVER["HISTSIZE"] => 1000
_SERVER["SSH_CLIENT"] => ###CENSORED### 58889 ###CENSORED###
_SERVER["SSH_TTY"] => /dev/pts/1
_SERVER["LC_ALL"] => en_US.UTF-8
_SERVER["USER"] => root
_SERVER["LS_COLORS"] => 
_SERVER["MAIL"] => /var/spool/mail/root
_SERVER["PATH"] => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_SERVER["INPUTRC"] => /etc/inputrc
_SERVER["PWD"] => /root
_SERVER["JAVA_HOME"] => /usr/local/jdk
_SERVER["EDITOR"] => pico
_SERVER["LANG"] => en_US.UTF-8
_SERVER["SHLVL"] => 1
_SERVER["HOME"] => /root
_SERVER["LANGUAGE"] => en_US.UTF-8
_SERVER["LS_OPTIONS"] => --color=tty -F -a -b -T 0
_SERVER["LOGNAME"] => root
_SERVER["VISUAL"] => pico
_SERVER["CVS_RSH"] => ssh
_SERVER["CLASSPATH"] => .:/usr/local/jdk/lib/classes.zip
_SERVER["SSH_CONNECTION"] => ###CENSORED### 58889 ###CENSORED### ###CENSORED###
_SERVER["LC_CTYPE"] => UTF-8
_SERVER["LESSOPEN"] => |/usr/bin/lesspipe.sh %s
_SERVER["G_BROKEN_FILENAMES"] => 1
_SERVER["_"] => /usr/local/bin/php
_SERVER["PHP_SELF"] => 
_SERVER["SCRIPT_NAME"] => 
_SERVER["SCRIPT_FILENAME"] => 
_SERVER["PATH_TRANSLATED"] => 
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME"] => 1355727349
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0
_ENV["HOSTNAME"] => server.###
_ENV["TERM"] => xterm-256color
_ENV["SHELL"] => /bin/bash
_ENV["HISTSIZE"] => 1000
_ENV["SSH_CLIENT"] => ###CENSORED### 58889 ###CENSORED###
_ENV["SSH_TTY"] => /dev/pts/1
_ENV["LC_ALL"] => en_US.UTF-8
_ENV["USER"] => root
_ENV["LS_COLORS"] => 
_ENV["MAIL"] => /var/spool/mail/root
_ENV["PATH"] => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_ENV["INPUTRC"] => /etc/inputrc
_ENV["PWD"] => /root
_ENV["JAVA_HOME"] => /usr/local/jdk
_ENV["EDITOR"] => pico
_ENV["LANG"] => en_US.UTF-8
_ENV["SHLVL"] => 1
_ENV["HOME"] => /root
_ENV["LANGUAGE"] => en_US.UTF-8
_ENV["LS_OPTIONS"] => --color=tty -F -a -b -T 0
_ENV["LOGNAME"] => root
_ENV["VISUAL"] => pico
_ENV["CVS_RSH"] => ssh
_ENV["CLASSPATH"] => .:/usr/local/jdk/lib/classes.zip
_ENV["SSH_CONNECTION"] => ###CENSORED### 58889 ###CENSORED### ###CENSORED###
_ENV["LC_CTYPE"] => UTF-8
_ENV["LESSOPEN"] => |/usr/bin/lesspipe.sh %s
_ENV["G_BROKEN_FILENAMES"] => 1
_ENV["_"] => /usr/local/bin/php

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
257/3904MB  3.46 2.40 2.06 2/277 12546
[12381:12375 0:1003] 02:55:49 Mon Dec 17 [root@server.###:/dev/pts/1 +1] ~ 
(1:1003)# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
filter
ftp
gd
gettext
hash
iconv
imap
intl
json
libxml
mbstring
mcrypt
mysql
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
sockets
SourceGuardian
SPL
SQLite
sqlite3
standard
suhosin
timezonedb
tokenizer
XCache
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
XCache

262/3904MB  3.18 2.36 2.05 2/270 12608
[12381:12375 0:1004] 02:55:56 Mon Dec 17 [root@server.###:/dev/pts/1 +1] ~ 
(1:1004)# 

this is my MAMP installation environment

Keats-MacBook-Pro:~ gohkeatliang$ cd /Applications/MAMP/bin/php/php5.4.4/bin
Keats-MacBook-Pro:bin gohkeatliang$ ./php -v
PHP 5.4.4 (cli) (built: Jul  4 2012 17:28:56) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with XCache v2.0.0, Copyright (c) 2005-2012, by mOo
Keats-MacBook-Pro:bin gohkeatliang$ ./php -i
phpinfo()
PHP Version => 5.4.4

System => Darwin Keats-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Build Date => Jul  4 2012 17:27:39
Configure Command =>  './configure'  '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/Applications/MAMP/Library' '--with-zlib' '--with-freetype-dir=/Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php/php5.4.4' '--exec-prefix=/Applications/MAMP/bin/php/php5.4.4' '--sysconfdir=/Applications/MAMP/bin/php/php5.4.4/conf' '--with-config-file-path=/Applications/MAMP/bin/php/php5.4.4/conf' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-t1lib=/Applications/MAMP/Library' '--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2007f' '--enable-soap' '--with-kerberos' '--enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl' '--enable-zip' '--with-iconv=/Applications/MAMP/Library'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /Applications/MAMP/bin/php/php5.4.4/conf
Loaded Configuration File => /Applications/MAMP/bin/php/php5.4.4/conf/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,NTS
PHP Extension Build => API20100525,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with XCache v2.0.0, Copyright (c) 2005-2012, by mOo


 _______________________________________________________________________


Configuration

bcmath

BCMath support => enabled

Directive => Local Value => Master Value
bcmath.scale => 0 => 0

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.6, 6-Sept-2010

calendar

Calendar support => enabled

Core

PHP Version => 5.4.4

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => /Applications/MAMP/logs/php_error.log => /Applications/MAMP/logs/php_error.log
error_prepend_string => no value => no value
error_reporting => 32767 => 32767
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/ => /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/
file_uploads => On => On
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/Applications/MAMP/bin/php/php5.4.4/lib/php => .:/Applications/MAMP/bin/php/php5.4.4/lib/php
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 32M => 32M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 32M => 32M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i 
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 32M => 32M
upload_tmp_dir => /Applications/MAMP/tmp/php => /Applications/MAMP/tmp/php
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.24.0
Age => 3
Features
AsynchDNS => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
Largefile => Yes
NTLM => Yes
SPNEGO => No
SSL => Yes
SSPI => No
krb4 => No
libz => Yes
CharConv => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host => x86_64-apple-darwin10.8.0
SSL Version => OpenSSL/0.9.8r
ZLib Version => 1.2.5

date

date/time support => enabled
"Olson" Timezone Database Version => 2012.3
Timezone Database => internal
Default timezone => Europe/Berlin

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => Europe/Berlin => Europe/Berlin

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.7.8
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ereg

Regex Library => Bundled library enabled

exif

EXIF Support => enabled
EXIF Version => 1.4 $Id$
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

fileinfo

fileinfo support => enabled
version => 1.0.5

filter

Input Validation and Filtering => enabled
Revision => $Id: e523cdc8829892d1b4f9cb7c3c57b2ba1c36b9ea $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled

gd

GD Support => enabled
GD Version => bundled (2.0.34 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.4.8
T1Lib Support => enabled
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.5.7
WBMP Support => enabled
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.14

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

imap

IMAP c-Client Version => 2007f
Kerberos Support => enabled

json

json support => enabled
json version => 1.2.1

ldap

LDAP Support => enabled
RCS Version => $Id$
Total Links => 0/unlimited
API Version => 3001
Vendor Name => OpenLDAP
Vendor Version => 20411

Directive => Local Value => Master Value
ldap.max_links => Unlimited => Unlimited

libxml

libXML support => active
libXML Compiled Version => 2.7.8
libXML Loaded Version => 20708
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 4.7.1

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mcrypt

mcrypt support => enabled
mcrypt_filter support => enabled
Version => 2.5.8
Api No => 20021217
Supported ciphers => cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream 

Directive => Local Value => Master Value
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.5.25
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /Applications/MAMP/tmp/mysql/mysql.sock
MYSQL_INCLUDE => -I/Applications/MAMP/Library/include
MYSQL_LIBS => -L/Applications/MAMP/Library/lib -lmysqlclient 

Directive => Local Value => Master Value
mysql.allow_local_infile => On => On
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => /Applications/MAMP/tmp/mysql/mysql.sock => /Applications/MAMP/tmp/mysql/mysql.sock
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off

mysqli

MysqlI Support => enabled
Client API library version => 5.5.25
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Client API header version => 5.5.25
MYSQLI_SOCKET => /Applications/MAMP/tmp/mysql/mysql.sock

Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 0.9.8r 8 Feb 2011
OpenSSL Header Version => OpenSSL 0.9.8r 8 Feb 2011

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.12 2011-01-15

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => sqlite, pgsql, mysql

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => 5.5.25

Directive => Local Value => Master Value
pdo_mysql.default_socket => /Applications/MAMP/tmp/mysql/mysql.sock => /Applications/MAMP/tmp/mysql/mysql.sock

pdo_pgsql

PDO Driver for PostgreSQL => enabled
PostgreSQL(libpq) Version => 8.4.6
Module version => 1.0.2
Revision =>  $Id$ 

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.7.7.1

pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.4.6
PostgreSQL(libpq)  => PostgreSQL 8.4.6 on i386-apple-darwin10.8.0, compiled by GCC i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00), 64-bit
Multibyte character support => enabled
SSL support => enabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.1
Phar API version => 1.1.1
SVN revision => $Id: 2a47d3d0354109d8077e34d59f1228ccfd021d59 $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
Native OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: 967584c6fadb3467f31abe8e13caa8764df85867 $

Reflection

Reflection => enabled
Version => $Id: 1cf65cee164ed57874ce2d29e5c46b82f6139524 $

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /Applications/MAMP/tmp/php => /Applications/MAMP/tmp/php
session.serialize_handler => php => php
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Id: 455280fc74f9f002b7314def7a456f6c3080eb92 $
Schema support => enabled

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite3 module version => 0.7
SQLite Library => 3.7.7.1

Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i 

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=,fieldset= => a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

XCache

XCache Support => enabled
Version => 2.0.0
Modules Built => cacher optimizer coverager assembler encoder decoder
Readonly Protection => N/A
Cache Init Time => 1970-01-01 01:00:00
Cache Instance Id => 0
Opcode Cache => disabled
Variable Cache => disabled
Shared Memory Schemes => mmap
Coverage Auto Dumper => disabled

Directive => Local Value => Master Value
xcache.admin.enable_auth => On => On
xcache.cacher => On => On
xcache.coredump_directory => /Applications/MAMP/tmp/phpcore/ => /Applications/MAMP/tmp/phpcore/
xcache.count => 1 => 1
xcache.coveragedump_directory => no value => no value
xcache.coverager => Off => Off
xcache.experimental => Off => Off
xcache.gc_interval => 0 => 0
xcache.mmap_path => /Applications/MAMP/tmp/xcache => /Applications/MAMP/tmp/xcache
xcache.optimizer => On => On
xcache.readonly_protection => no value => no value
xcache.shm_scheme => mmap => mmap
xcache.size => 64M => 64M
xcache.slots => 8K => 8K
xcache.stat => On => On
xcache.test => no value => no value
xcache.ttl => 0 => 0
xcache.var_count => 1 => 1
xcache.var_gc_interval => 300 => 300
xcache.var_maxttl => 0 => 0
xcache.var_size => 64M => 64M
xcache.var_slots => 8K => 8K
xcache.var_ttl => 0 => 0

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.7.8

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

xsl

XSL => enabled
libxslt Version => 1.1.26
libxslt compiled against libxml Version => 2.7.8
EXSLT => enabled
libexslt Version => 1.1.26

yaz

YAZ Support => enabled
PHP/YAZ Version => 1.1.3
YAZ Version => 4.0.1
Compiled with YAZ version => 4.0.1

zip

Zip => enabled
Extension Version => $Id$
Zip version => 1.9.1
Libzip version => 0.9.0

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.3
Linked Version => 1.2.5

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
rvm_bin_path => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin
TERM_PROGRAM => Apple_Terminal
GEM_HOME => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
TERM => xterm-256color
SHELL => /bin/bash
IRBRC => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/.irbrc
TMPDIR => /var/folders/92/n9snhjrn7wz2pqc9zlmc1ls00000gn/T/
Apple_PubSub_Socket_Render => /tmp/launch-4UYmco/Render
TERM_PROGRAM_VERSION => 309
OLDPWD => /Volumes/BACKUP/KEATLIANG_HOME
MY_RUBY_HOME => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327
TERM_SESSION_ID => C9BC8D78-BD14-4C78-9A74-5F809FC1FE25
USER => gohkeatliang
COMMAND_MODE => unix2003
__array_start => 0
rvm_path => /Volumes/BACKUP/KEATLIANG_HOME/.rvm
SSH_AUTH_SOCK => /tmp/launch-8XGOXk/Listeners
__CF_USER_TEXT_ENCODING => 0x1F5:0:0
Apple_Ubiquity_Message => /tmp/launch-8vMcM5/Apple_Ubiquity_Message
escape_flag => 1
rvm_prefix => /Volumes/BACKUP/KEATLIANG_HOME
PATH => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
PWD => /Applications/MAMP/bin/php/php5.4.4/bin
_second => 1
rvm_version => 1.17.2 (stable)
SHLVL => 1
HOME => /Volumes/BACKUP/KEATLIANG_HOME
_first => 0
LOGNAME => gohkeatliang
GEM_PATH => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
LC_CTYPE => UTF-8
DISPLAY => /tmp/launch-tMldRx/org.macosforge.xquartz:0
RUBY_VERSION => ruby-1.9.3-p327
_ => ./php

PHP Variables

Variable => Value
_SERVER["rvm_bin_path"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin
_SERVER["TERM_PROGRAM"] => Apple_Terminal
_SERVER["GEM_HOME"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
_SERVER["TERM"] => xterm-256color
_SERVER["SHELL"] => /bin/bash
_SERVER["IRBRC"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/.irbrc
_SERVER["TMPDIR"] => /var/folders/92/n9snhjrn7wz2pqc9zlmc1ls00000gn/T/
_SERVER["Apple_PubSub_Socket_Render"] => /tmp/launch-4UYmco/Render
_SERVER["TERM_PROGRAM_VERSION"] => 309
_SERVER["OLDPWD"] => /Volumes/BACKUP/KEATLIANG_HOME
_SERVER["MY_RUBY_HOME"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327
_SERVER["TERM_SESSION_ID"] => C9BC8D78-BD14-4C78-9A74-5F809FC1FE25
_SERVER["USER"] => gohkeatliang
_SERVER["COMMAND_MODE"] => unix2003
_SERVER["__array_start"] => 0
_SERVER["rvm_path"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm
_SERVER["SSH_AUTH_SOCK"] => /tmp/launch-8XGOXk/Listeners
_SERVER["__CF_USER_TEXT_ENCODING"] => 0x1F5:0:0
_SERVER["Apple_Ubiquity_Message"] => /tmp/launch-8vMcM5/Apple_Ubiquity_Message
_SERVER["escape_flag"] => 1
_SERVER["rvm_prefix"] => /Volumes/BACKUP/KEATLIANG_HOME
_SERVER["PATH"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
_SERVER["PWD"] => /Applications/MAMP/bin/php/php5.4.4/bin
_SERVER["_second"] => 1
_SERVER["rvm_version"] => 1.17.2 (stable)
_SERVER["SHLVL"] => 1
_SERVER["HOME"] => /Volumes/BACKUP/KEATLIANG_HOME
_SERVER["_first"] => 0
_SERVER["LOGNAME"] => gohkeatliang
_SERVER["GEM_PATH"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
_SERVER["LC_CTYPE"] => UTF-8
_SERVER["DISPLAY"] => /tmp/launch-tMldRx/org.macosforge.xquartz:0
_SERVER["RUBY_VERSION"] => ruby-1.9.3-p327
_SERVER["_"] => ./php
_SERVER["PHP_SELF"] => 
_SERVER["SCRIPT_NAME"] => 
_SERVER["SCRIPT_FILENAME"] => 
_SERVER["PATH_TRANSLATED"] => 
_SERVER["DOCUMENT_ROOT"] => 
_SERVER["REQUEST_TIME_FLOAT"] => 1355727060.04
_SERVER["REQUEST_TIME"] => 1355727060
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0
_ENV["rvm_bin_path"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin
_ENV["TERM_PROGRAM"] => Apple_Terminal
_ENV["GEM_HOME"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
_ENV["TERM"] => xterm-256color
_ENV["SHELL"] => /bin/bash
_ENV["IRBRC"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/.irbrc
_ENV["TMPDIR"] => /var/folders/92/n9snhjrn7wz2pqc9zlmc1ls00000gn/T/
_ENV["Apple_PubSub_Socket_Render"] => /tmp/launch-4UYmco/Render
_ENV["TERM_PROGRAM_VERSION"] => 309
_ENV["OLDPWD"] => /Volumes/BACKUP/KEATLIANG_HOME
_ENV["MY_RUBY_HOME"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327
_ENV["TERM_SESSION_ID"] => C9BC8D78-BD14-4C78-9A74-5F809FC1FE25
_ENV["USER"] => gohkeatliang
_ENV["COMMAND_MODE"] => unix2003
_ENV["__array_start"] => 0
_ENV["rvm_path"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm
_ENV["SSH_AUTH_SOCK"] => /tmp/launch-8XGOXk/Listeners
_ENV["__CF_USER_TEXT_ENCODING"] => 0x1F5:0:0
_ENV["Apple_Ubiquity_Message"] => /tmp/launch-8vMcM5/Apple_Ubiquity_Message
_ENV["escape_flag"] => 1
_ENV["rvm_prefix"] => /Volumes/BACKUP/KEATLIANG_HOME
_ENV["PATH"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/rubies/ruby-1.9.3-p327/bin:/Volumes/BACKUP/KEATLIANG_HOME/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
_ENV["PWD"] => /Applications/MAMP/bin/php/php5.4.4/bin
_ENV["_second"] => 1
_ENV["rvm_version"] => 1.17.2 (stable)
_ENV["SHLVL"] => 1
_ENV["HOME"] => /Volumes/BACKUP/KEATLIANG_HOME
_ENV["_first"] => 0
_ENV["LOGNAME"] => gohkeatliang
_ENV["GEM_PATH"] => /Volumes/BACKUP/KEATLIANG_HOME/.rvm/gems/ruby-1.9.3-p327@global
_ENV["LC_CTYPE"] => UTF-8
_ENV["DISPLAY"] => /tmp/launch-tMldRx/org.macosforge.xquartz:0
_ENV["RUBY_VERSION"] => ruby-1.9.3-p327
_ENV["_"] => ./php

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
Keats-MacBook-Pro:bin gohkeatliang$ ./php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
XCache
xml
xmlreader
xmlwriter
xsl
yaz
zip
zlib

[Zend Modules]
XCache
Owner

Thanks for reporting, I don't know how did I end up doing that, but the whole logic was upside-down. This should fix it: ae63462

@kakysha

I think it is an error. Because in case of protected level PHP throws Fatal Error (function is called from the other class, huh?)

Owner

Good point, thanks.

ac23e21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.