Bug #70038 [NEW]: peer verification needs to be a global option

From: Date: Fri, 10 Jul 2015 09:23:06 +0000
Subject: Bug #70038 [NEW]: peer verification needs to be a global option
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194280@lists.php.net to get a copy of this message
From:             spam2 at rhsoft dot net
Operating system: 
PHP version:      5.6.10
Package:          Streams related
Bug Type:         Bug
Bug description:peer verification needs to be a global option

Description:
------------
it's nice that you can disable certificate-verification for
file_get_contents stream_context_create() and pass the context as param

BUT BECAUSE EVERY function in php supports the stream-wrappers this is
completly inconsistent (https://bugs.php.net/bug.php?id=68344) and not
useable in real life applications which may run as clone in testing
environments

you hardly want to place stream_context_create() all over your codebase
and HONESTLY if 3rd party libraries are part of the game YOU CAN NOT DO
that in many cases and so you NEED a GLOBAL configuration parameter to
disable the verification via per-directory, php.ini or inside the
application like if($config['debug_mode']) ini_set('peer_verification',
0);

it's unbelieveable that after the 5.4 disaster changing the default
charset with no global option and re-write and re-test some undret
thousand LOC now ith 5.6 "default_charset" two major releases that
fallout was fixed while in the same major release the major mistake was
repeated with peer verification


-- 
Edit bug report at https://bugs.php.net/bug.php?id=70038&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70038&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70038&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70038&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70038&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70038&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70038&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70038&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70038&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70038&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70038&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70038&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70038&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70038&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70038&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70038&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70038&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70038&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70038&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70038&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70038&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#194280) next »