100+ results for 'php error_reporting'
Not the results you expected?
post_thanks_admin.php (https://gitlab.com/elasa/vb-elasa.ir) PHP · 359 lines
1 <?php
2 /*======================================*\
3 || #################################### ||
8 \*======================================*/
10 // ######################## SET PHP ENVIRONMENT ###########################
11 error_reporting(E_ALL & ~E_NOTICE);
20 // ########################## REQUIRE BACK-END ############################
21 require_once('./global.php');
22 require_once(DIR . '/includes/functions_post_thanks.php');
125 if ($checkmore = $db->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE userid >= $finishat LIMIT 1"))
126 {
127 print_cp_redirect("post_thanks_admin.php?" . $vbulletin->session->vars['sessionurl'] . "do=post_thanks_user_amount&startat=$finishat&pp=" . $vbulletin->GPC['perpage']);
128 echo "<p><a href=\"post_thanks_admin.php?" . $vbulletin->session->vars['sessionurl'] . "do=post_thanks_user_amount&startat=$finishat&pp=" . $vbulletin->GPC['perpage'] . "\">" . $vbphrase['click_here_to_continue_processing'] . "</a></p>";
fsc.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 481 lines
1 <?php
2 error_reporting(-1);
66 * 1) If the current instance ($this) is non-null, the class of the current
67 * instance must be the same or a descendent of the class enclosing the
68 * current method. The PHP group is in the process of depracating this
69 * behavior. HipHop explicitly lists this in the inconsistencies doc.
70 * 2) If the current instance ($this) is non-null, the class of the current
71 * instance must be the same as the current late bound class (aka the
72 * "called class"). This invariant is stated explicitly in PHP5's
73 * documentation: "In non-static contexts, the called class will be the
74 * class of the object instance."
75 * 3) Normal style calls and call_user_func style calls should produce
76 * consistent results aside from any exceptions mentioned in PHP5's
77 * documentation. Therefore, "B::foo()" and "call_user_func('B::foo')"
78 * and "call_user_func(array('B', 'foo'))" should all produce consistent
cuf.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 689 lines
1 <?php
2 error_reporting(-1);
66 * 1) If the current instance ($this) is non-null, the class of the current
67 * instance must be the same or a descendent of the class enclosing the
68 * current method. The PHP group is in the process of depracating this
69 * behavior. HipHop explicitly lists this in the inconsistencies doc.
70 * 2) If the current instance ($this) is non-null, the class of the current
71 * instance must be the same as the current late bound class (aka the
72 * "called class"). This invariant is stated explicitly in PHP5's
73 * documentation: "In non-static contexts, the called class will be the
74 * class of the object instance."
75 * 3) Normal style calls and call_user_func style calls should produce
76 * consistent results aside from any exceptions mentioned in PHP5's
77 * documentation. Therefore, "B::meth()" and "call_user_func('B::meth')"
78 * and "call_user_func(array('B', 'meth'))" should all produce consistent
fsc.php (https://github.com/tstarling/hiphop-php.git) PHP · 481 lines
1 <?php
2 error_reporting(-1);
66 * 1) If the current instance ($this) is non-null, the class of the current
67 * instance must be the same or a descendent of the class enclosing the
68 * current method. The PHP group is in the process of depracating this
69 * behavior. HipHop explicitly lists this in the inconsistencies doc.
70 * 2) If the current instance ($this) is non-null, the class of the current
71 * instance must be the same as the current late bound class (aka the
72 * "called class"). This invariant is stated explicitly in Zend PHP's
73 * documentation: "In non-static contexts, the called class will be the
74 * class of the object instance."
75 * 3) Normal style calls and call_user_func style calls should produce
76 * consistent results aside from any exceptions mentioned in Zend PHP's
77 * documentation. Therefore, "B::foo()" and "call_user_func('B::foo')"
78 * and "call_user_func(array('B', 'foo'))" should all produce consistent
cuf.php (https://github.com/tstarling/hiphop-php.git) PHP · 689 lines
1 <?php
2 error_reporting(-1);
66 * 1) If the current instance ($this) is non-null, the class of the current
67 * instance must be the same or a descendent of the class enclosing the
68 * current method. The PHP group is in the process of depracating this
69 * behavior. HipHop explicitly lists this in the inconsistencies doc.
70 * 2) If the current instance ($this) is non-null, the class of the current
71 * instance must be the same as the current late bound class (aka the
72 * "called class"). This invariant is stated explicitly in Zend PHP's
73 * documentation: "In non-static contexts, the called class will be the
74 * class of the object instance."
75 * 3) Normal style calls and call_user_func style calls should produce
76 * consistent results aside from any exceptions mentioned in Zend PHP's
77 * documentation. Therefore, "B::meth()" and "call_user_func('B::meth')"
78 * and "call_user_func(array('B', 'meth'))" should all produce consistent
errors.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 288 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: errors.php 2460 2008-04-08 21:03:22Z mz $
7 */
9 /**
10 * @ignore - PHP5 compatibility fix.
11 */
12 if (! defined('E_STRICT')) {
17 * Includes SimpleTest files.
18 */
19 require_once dirname(__FILE__) . '/invoker.php';
20 require_once dirname(__FILE__) . '/test_case.php';
selector_testcase.php (https://bitbucket.org/hocarvalho/wroisite.git) PHP · 584 lines
selector_testcase.php (https://bitbucket.org/hocarvalho/wroisite.git) PHP · 742 lines
invalid_testcase.php (https://bitbucket.org/hocarvalho/wroisite.git) PHP · 658 lines
DevelErrorHandlerTest.php (https://gitlab.com/Drulenium-bot/devel) PHP · 213 lines
1 <?php
3 namespace Drupal\devel\Tests;
38 $config = $this->config('system.logging');
39 $config->set('error_level', ERROR_REPORTING_DISPLAY_VERBOSE)->save();
41 $admin_user = $this->drupalCreateUser(['administer site configuration', 'access devel information']);
51 // Ensures that selecting the DEVEL_ERROR_HANDLER_NONE option no error
52 // (raw or message) is shown on the site in case of php errors.
53 $edit = [
54 'error_handlers[]' => DEVEL_ERROR_HANDLER_NONE,
69 // Ensures that selecting the DEVEL_ERROR_HANDLER_BACKTRACE_KINT option a
70 // backtrace above the rendered page is shown on the site in case of php
71 // errors.
72 $edit = [
html_graphs.php (https://github.com/shooray/oscommerce2-mypgsql.git) PHP · 568 lines
1 <?php
2 /*
3 $Id$
18 function html_graph($names, $values, $bars, $vals, $dvalues = 0, $dbars = 0) {
19 // set the error level on entry and exit so as not to interfear with anyone elses error checking.
20 $er = error_reporting(1);
22 // set the values that the user didn't
38 // Set the error level back to where it was.
39 error_reporting($er);
41 return $html_graph_string;
44 ////
45 // sets up the $vals array by initializing all values to null. Used to avoid
46 // warnings from error_reporting being set high. This routine only needs to be
47 // called if you are worried about using uninitialized variables.
48 function html_graph_init() {
couchClientViewTest.php (https://github.com/rwaldron/PHP-on-Couch.git) PHP · 500 lines
Client.php (https://bitbucket.org/cleto/zeroc-ice-package.git) PHP · 1067 lines
Client.php (https://bitbucket.org/cleto/zeroc-ice-package.git) PHP · 532 lines
DataManager.class.php (https://github.com/Aaron-P/Cranberry-Scheduler.git) PHP · 1002 lines
settings.tpl (https://bitbucket.org/droidzone/i-mscp.git) Smarty Template · 428 lines
221 </div>
222 <div class="even">
223 <div class="left"><label for="phpini_error_reporting">{TR_PHPINI_ERROR_REPORTING}</label></div>
224 <div class="right">
225 <select name="phpini_error_reporting" id="phpini_error_reporting">
226 <option value="E_ALL & ~E_NOTICE" {PHPINI_ERROR_REPORTING_0}>{TR_PHPINI_ERROR_REPORTING_DEFAULT}</option>
227 <option value="E_ALL | E_STRICT" {PHPINI_ERROR_REPORTING_1}>{TR_PHPINI_ERROR_REPORTING_DEVELOPEMENT}</option>
228 <option value="E_ALL & ~E_DEPRECATED" {PHPINI_ERROR_REPORTING_2}>{TR_PHPINI_ERROR_REPORTING_PRODUCTION}</option>
229 <option value="0" {PHPINI_ERROR_REPORTING_3}>{TR_PHPINI_ERROR_REPORTING_NONE}</option>
230 </select>
231 </div>
287 <input name="exec" id="exec" type="checkbox" {EXEC} value="exec"/>
288 <label for="exec">exec</label>
289 <input name="phpinfo" id="phpinfo" type="checkbox" {PHPINFO} value="phpinfo"/>
290 <label for="phpinfo">phpinfo</label>
LegacyOptionsResolverTest.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 719 lines
1 <?php
3 /*
18 * @group legacy
19 */
20 class LegacyOptionsResolverTest extends \PHPUnit_Framework_TestCase
21 {
22 /**
27 protected function setUp()
28 {
29 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
31 $this->resolver = new OptionsResolver();
110 $this->resolver->setDefaults(array(
111 'two' => function (Options $options) use ($test) {
112 /* @var \PHPUnit_Framework_TestCase $test */
113 $test->assertFalse(isset($options['one']));
html_graphs.php (https://github.com/gerard-leijdekkers/geven-nemen.git) PHP · 568 lines
1 <?php
2 /*
3 $Id: html_graphs.php,v 1.7 2003/06/20 00:18:31 hpdl Exp $
18 function html_graph($names, $values, $bars, $vals, $dvalues = 0, $dbars = 0) {
19 // set the error level on entry and exit so as not to interfear with anyone elses error checking.
20 $er = error_reporting(1);
22 // set the values that the user didn't
38 // Set the error level back to where it was.
39 error_reporting($er);
41 return $html_graph_string;
44 ////
45 // sets up the $vals array by initializing all values to null. Used to avoid
46 // warnings from error_reporting being set high. This routine only needs to be
47 // called if you are worried about using uninitialized variables.
48 function html_graph_init() {
index.php (https://github.com/kryu2/ci-ja.git) PHP · 238 lines
class.php (https://gitlab.com/mateoagudelo/slim) PHP · 497 lines
user.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 246 lines
1 <?php
2 /**
3 * @package Joomla.Site
10 defined('_JEXEC') or die;
12 require_once JPATH_COMPONENT.'/controller.php';
14 /**
41 if (empty($data['return']))
42 {
43 $data['return'] = 'index.php?option=com_users&view=profile';
44 }
69 $data['remember'] = (int) $options['remember'];
70 $app->setUserState('users.login.form.data', $data);
71 $app->redirect(JRoute::_('index.php?option=com_users&view=login', false));
72 }
73 }
cookbook.html
(https://swig.svn.sourceforge.net/svnroot/swig)
HTML · 238 lines
✨ Summary
This HTML code outputs a PHP tutorial on using MagpieRSS to parse and display RSS feeds. It provides examples of how to limit the number of items returned, display custom error messages, generate new RSS feeds, filter headlines by date, and parse local files containing RSS. The content is presented in a structured format with headings, paragraphs, and code snippets.
This HTML code outputs a PHP tutorial on using MagpieRSS to parse and display RSS feeds. It provides examples of how to limit the number of items returned, display custom error messages, generate new RSS feeds, filter headlines by date, and parse local files containing RSS. The content is presented in a structured format with headings, paragraphs, and code snippets.
115 <a href="http://www.php.net/ini_set">http://www.php.net/ini_set</a>, <br />
116 <a
117 href="http://www.php.net/manual/en/ref.errorfunc.php">http://www.php.net/manual/en/ref.errorfunc.php</a><br
118 />
215 <h3>See: </h3>
216 <a
217 href="http://www.php.net/manual/en/ref.filesystem.php">http://www.php.net/manual/en/ref.filesystem.php</a>,<br
218 />
219 <a
220 href="http://www.php.net/manual/en/language.oop.php">http://www.php.net/manual/en/language.oop.php</a>
222 <!--
IseedTest.php (https://gitlab.com/m12_team/m12) PHP · 1382 lines
GetbdP.php (https://gitlab.com/developers.zombie/getBd) PHP · 311 lines
html_graphs.php (https://github.com/ZenMagick/zc-base.git) PHP · 591 lines
1 <?php
2 /**
3 * @package admin
5 * @copyright Portions Copyright 2003 osCommerce
6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
7 * @version $Id: html_graphs.php 14139 2009-08-10 13:46:02Z wilt $
8 */
13 function html_graph($names, $values, $bars, $vals, $dvalues = 0, $dbars = 0) {
14 // set the error level on entry and exit so as not to interfear with anyone elses error checking.
15 $er = error_reporting(1);
17 // set the values that the user didn't
33 // Set the error level back to where it was.
34 error_reporting($er);
36 return $html_graph_string;
confirmreservation3.php (https://bitbucket.org/anneivycat/california-tour.git) PHP · 871 lines
1 <?php
2 error_reporting(0);
3 session_start();
4 include_once 'schedtourbookfuncs.php';
5 include_once 'schedtourbookholdfuncs.php';
6 include_once '../sqlfuncs.php';
7 include_once 'parsefuncs.php';
599 <html>
600 <head>
601 <title>California Tours - <?php echo $title ?></title>
602 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
603 <script type="text/javascript" src="../scripts/emails.js"></script>
863 }
864 if (@$AgentReservationId) {
865 print("<font face='arial'>Click <a href='main.php?main.php?args=menu,$UserLevel,$UserName'>here</a> to return to the main screen.</font>\n");
866 }
867 ** ===== updated on dec 17 2008 , comment end =====
confirmreservation2.php (https://bitbucket.org/anneivycat/california-tour.git) PHP · 711 lines
4 include_once 'schedtourbookfuncs.php';
5 include_once 'schedtourbookholdfuncs.php';
6 include_once '../sqlfuncs.php';
525 Customer 2 Name: <?php echo ucfirst(strtolower($FIRST_NAME_2)) . ' ' . ucfirst(strtolower($LAST_NAME_2)); ?></p>
526 <?php
527 }
528 ?>
557 <tr>
558 <td>Price per person:</td>
559 <td><?php
560 printf('%0.2f', $_POST['total_charge']/$total_passenger_count);
561 ?>
703 }
704 if (@$AgentReservationId) {
705 print("<font face='arial'>Click <a href='main.php?main.php?args=menu,$UserLevel,$UserName'>here</a> to return to the main screen.</font>\n");
706 }
707 ** ===== updated on dec 17 2008 , comment end =====
index.php (https://bitbucket.org/jiji262/wechat_robot.git) PHP · 211 lines
1 <?php
2 /*
3 *---------------------------------------------------------------
15 * production
16 *
17 * NOTE: If you change these, also change the error_reporting() code below
18 *
19 */
33 {
34 case 'development':
35 error_reporting(E_ALL);
36 break;
38 case 'testing':
39 case 'production':
40 error_reporting(0);
41 break;
selector_testcase.php (https://github.com/louisje/PodcastCrawler.git) PHP · 742 lines
mysqli_stmt_affected_rows.php (https://gitlab.com/iranjith4/hhvm) PHP · 231 lines
CouchClientViewTest.php (https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git) PHP · 520 lines
update.php (https://github.com/alx/pressmark.git) PHP · 198 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
12 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
25 $title = __('Upgrade Plugin');
26 $parent_file = 'plugins.php';
27 $submenu_file = 'plugins.php';
28 require_once('admin-header.php');
30 $nonce = 'upgrade-plugin_' . $plugin;
tool-file-editor.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 244 lines
1 <?php
2 /**
3 * WPSEO plugin file.
36 ob_start();
37 error_reporting( 0 );
38 do_robots();
39 $robots_content = ob_get_clean();
94 if ( is_multisite() ) {
95 $action_url = network_admin_url( 'admin.php?page=wpseo_files' );
96 $yform->admin_header( false, 'wpseo_ms' );
97 }
98 else {
99 $action_url = admin_url( 'admin.php?page=wpseo_tools&tool=file-editor' );
100 }
tests.php (https://github.com/pyrsmk/Chernozem.git) PHP · 515 lines
LegacyApacheMatcherDumperTest.php (https://gitlab.com/techniconline/kmc) PHP · 204 lines
1 <?php
3 /*
19 * @group legacy
20 */
21 class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase
22 {
23 protected static $fixturesPath;
30 protected function setUp()
31 {
32 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
33 }
66 $collection->add('foo', new Route('/foo'));
67 $dumper = new ApacheMatcherDumper($collection);
68 $this->assertStringEqualsFile(self::$fixturesPath . '/dumper/url_matcher2.apache', $dumper->dump(array('script_name' => 'ap p_d\ ev.php')));
69 }
html_graphs.php (https://github.com/severnaya99/Sg-2010.git) PHP · 604 lines
1 <?php
2 //
3 // +----------------------------------------------------------------------+
6 // | Copyright (c) 2003 The zen-cart developers |
7 // | |
8 // | http://www.zen-cart.com/index.php |
9 // | |
10 // | Portions Copyright (c) 2003 osCommerce |
18 // | license@zen-cart.com so we can mail you a copy immediately. |
19 // +----------------------------------------------------------------------+
20 // $Id: html_graphs.php 290 2004-09-15 19:48:26Z wilt $
21 //
26 function html_graph($names, $values, $bars, $vals, $dvalues = 0, $dbars = 0) {
27 // set the error level on entry and exit so as not to interfear with anyone elses error checking.
28 $er = error_reporting(1);
30 // set the values that the user didn't
update.php (https://github.com/muskmelon/Greemo.git) PHP · 250 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
12 /** WordPress Administration Bootstrap */
13 require_once('./admin.php');
15 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
35 $plugins = array_map('urldecode', $plugins);
37 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
38 $nonce = 'bulk-update-plugins';
54 $title = __('Update Plugin');
55 $parent_file = 'plugins.php';
56 $submenu_file = 'plugins.php';
index.php (https://github.com/Maigre/SupAir.git) PHP · 222 lines
1 <?php
3 define('APP_NAME','SupAir');
5 define('CLIENT_NAME','Client1'); //TODO find a way to choose client !
7 if (is_file('../'.APP_NAME.'_'.CLIENT_NAME.'_seed.php'))
8 {
9 define('APP_TYPE','local');
10 require_once('../'.APP_NAME.'_'.CLIENT_NAME.'_seed.php');
11 }
12 elseif (is_file('../'.APP_NAME.'_'.CLIENT_NAME.'.php'))
13 {
14 define('APP_TYPE','server');
15 require_once('../'.APP_NAME.'_'.CLIENT_NAME.'.php');
16 }
LegacyApacheMatcherDumperTest.php (https://gitlab.com/MineYourMind/BoNeMEAL) PHP · 204 lines
1 <?php
3 /*
19 * @group legacy
20 */
21 class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase
22 {
23 protected static $fixturesPath;
30 protected function setUp()
31 {
32 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
33 }
66 $collection->add('foo', new Route('/foo'));
67 $dumper = new ApacheMatcherDumper($collection);
68 $this->assertStringEqualsFile(self::$fixturesPath.'/dumper/url_matcher2.apache', $dumper->dump(array('script_name' => 'ap p_d\ ev.php')));
69 }
result.php (https://github.com/cbandy/real-database.git) PHP · 722 lines
1 <?php
3 require_once dirname(__FILE__).'/testcase'.EXT;
4 require_once 'PHPUnit/Extensions/Database/DataSet/CsvDataSet.php';
6 /**
18 protected function getDataSet()
19 {
20 $dataset = new PHPUnit_Extensions_Database_DataSet_CsvDataSet;
21 $dataset->addTable(
22 Database::factory()->table_prefix().$this->_table,
203 $result = Database::factory()->execute_query($query);
205 if (error_reporting() & E_WARNING)
206 {
207 if (version_compare(PHP_VERSION, '5.3.9', '<'))
result.php (https://github.com/cbandy/real-database.git) PHP · 697 lines
1 <?php
3 require_once dirname(__FILE__).'/testcase'.EXT;
4 require_once 'PHPUnit/Extensions/Database/DataSet/CsvDataSet.php';
6 /**
18 protected function getDataSet()
19 {
20 $dataset = new PHPUnit_Extensions_Database_DataSet_CsvDataSet;
21 $dataset->addTable(
22 Database::factory()->table_prefix().$this->_table,
203 $result = Database::factory()->execute_query($query);
205 if (error_reporting() & E_WARNING)
206 {
207 $this->setExpectedException(
index.php (https://github.com/busaway/FoOlSlide.git) PHP · 197 lines
tpl_error.inc.php (https://github.com/vStone/ispconfig3-old.git) PHP · 92 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 // +----------------------------------------------------------------------+
4 // | PHP version 4.0 |
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 2002 Active Fish Group |
9 // +----------------------------------------------------------------------+
10 //
11 // $Id: error.php,v 1.1 2003/07/08 12:32:06 platinum Exp $
13 define('FATAL', E_USER_ERROR);
34 function raiseError ($code, $level = null, $extra=null) {
35 if (!($level & error_reporting())&& $level != KILL) return; // binary AND checks for reporting level
37 $error_codes = array(
index.php (https://bitbucket.org/everlon/teste-netsar.git) PHP · 212 lines
index.php (https://bitbucket.org/godsdevils/parcel.git) PHP · 206 lines
create_database.php (https://github.com/roobie/g19db_infc20.git) PHP · 222 lines
core.php (https://github.com/didierjc/clear.git) PHP · 118 lines
3 function setReporting(){
4 if(DEVELOPMENT_ENVIRONMENT == true){
5 // error_reporting() | sets the error_reporting directive at runtime; PHP has many levels of errors, using this function sets that level for the duration of your script
6 error_reporting(E_ALL); // E_ALL | All errors and warnings
7 ini_set('display_errors', 1); // set the value of a configuration option -- display_errors: determines whether errors should be printed to the screen as part of the output
8 }else{
9 error_reporting(E_ALL);
10 ini_set('display_errors', 0);
11 ini_set('log_errors', 1); // script error messages will be logged to the server's error log
37 our URLs will look - yoursite.com/controllerName/actionName/queryString
39 callHook() basically takes the URL which we have received from index.php and separates it out as $controller, $action and the remaining as $queryString.
40 $model is the singular version of $controller.
57 if(!isset($url)){ // $url is set in public/index.php -- line 24
58 $controller = $default['controller']; // this is set in configuration/routing.php -- line 16
59 $action = $default['action']; // this is set in configuration/routing.php -- line 17
03_add_parameter_permission_items.php (https://github.com/richhl/kalturaCE.git) PHP · 75 lines
1 <?php
2 /**
3 * @package deployment
11 //-- Bootstraping
13 error_reporting(E_ALL);
15 require_once(dirname(__FILE__).'/../../../bootstrap.php');
16 require_once(ROOT_DIR . '/api_v3/bootstrap.php');
18 PermissionPeer::clearInstancePool();
67 $msg = '***** ERROR - Permission ['.$cur['permission'].'] not found for item ['.$cur['object'].'->'.$cur['parameter'].']';
68 KalturaLog::alert($msg);
69 echo $msg.PHP_EOL;
70 continue;
71 }
SplFileInfo.php (https://github.com/soitun/hiphop-php.git) PHP · 456 lines
220 // This doc comment block generated by idl/sysdoc.php
221 /**
222 * ( excerpt from http://php.net/manual/en/splfileinfo.gettype.php )
223 *
224 * Returns the type of the file referenced.
308 // This doc comment block generated by idl/sysdoc.php
309 /**
310 * ( excerpt from http://php.net/manual/en/splfileinfo.islink.php )
311 *
312 * Use this method to check if the file referenced by the SplFileInfo
428 // This doc comment block generated by idl/sysdoc.php
429 /**
430 * ( excerpt from http://php.net/manual/en/splfileinfo.setinfoclass.php )
431 *
432 * Use this method to set a custom class which will be used when
index.php (https://github.com/Aaron-P/Cranberry-Scheduler.git) PHP · 260 lines
1 <?php
2 /**
3 * @copyright University of Illinois/NCSA Open Source License
4 */
6 error_reporting(E_ALL | E_STRICT);
7 require_once("classes/UserSession.class.php");
8 require_once("classes/smarty/Smarty.class.php");
9 require_once("classes/GetHandler.class.php");
10 require_once("classes/SessionHandler.class.php");
11 require_once("classes/DataManager.class.php");
12 require_once("classes/ScriptUrls.class.php");
14 $smarty = new Smarty();
settings.yml (https://github.com/cidesa/siga-universitario.git) YAML · 108 lines
7 .settings:
8 # E_ALL | E_STRICT = 4095
9 error_reporting: 4095
10 web_debug: on
11 cache: off
17 .settings:
18 # E_ALL | E_STRICT & ~E_NOTICE = 2047
19 error_reporting: 2047
20 cache: off
21 web_debug: off
54 i18n: on # Enable interface translation. Set to off if your application should not be translated.
55 # check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
56 # use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
57 # compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
58 # check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
59 #
60 # # Output escaping settings
index.php (https://github.com/yichaowang/yichao.git) PHP · 205 lines
index.php (https://bitbucket.org/kanetnguyen/aan.provider.git) PHP · 206 lines
cat_carrier_update_queue.php (https://gitlab.com/ptisky/API_prestashop) PHP · 270 lines
index.php (https://github.com/MikePearce/Story-Printer.git) PHP · 205 lines
smarty_internal_templatebase.php (https://gitlab.com/team_fsn/fsn-php) PHP · 316 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Smarty Template Base
170 try {
171 $_smarty_old_error_level =
172 ($this->_objType == 1 && isset($smarty->error_reporting)) ? error_reporting($smarty->error_reporting) :
173 null;
174 if ($function == 2) {
192 }
193 if (isset($_smarty_old_error_level)) {
194 error_reporting($_smarty_old_error_level);
195 }
196 return $result;
212 * @param string $type plugin type
213 * @param string $name name of template tag
214 * @param callback $callback PHP callback to register
215 * @param bool $cacheable if true (default) this function is cache able
216 * @param mixed $cache_attr caching attributes if any
dom_testcase.php (https://bitbucket.org/hocarvalho/wroisite.git) PHP · 386 lines
Template.php (https://bitbucket.org/wl-framework-dev/weblab-framework.git) PHP · 350 lines
1 <?php
2 /**
3 * Represents a PHP Template file
237 /**
238 * Include a component file for current template
239 * $component will be attached behind the filename, including a suffix .php
240 *
241 * @param string $component
255 $theme .= '/';
257 $path = $this->_dir . '/' . $theme . $name . $component . '.php';
259 if( isset( self::_getConfig()->extract_vars ) && self::_getConfig()->extract_vars && $extract ) {
263 // Load the template
264 $error_report = error_reporting();
265 error_reporting( $error_report & ( E_ALL ^ E_WARNING ) );
graph.php (https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git) PHP · 184 lines
1 <?php // $Id$
2 // Produces a graph of log accesses
4 require_once("../../../config.php");
5 require_once("../../lib.php");
6 require_once("$CFG->libdir/graphlib.php");
8 $id = required_param('id', PARAM_INT); // Course ID
115 $graph->parameter['shadow'] = 'none';
117 error_reporting(5); // ignore most warnings such as font problems etc
118 $graph->draw_stack();
errors.php (https://github.com/nattaphat/hgis.git) PHP · 257 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: errors.php 1784 2008-04-26 13:07:14Z pp11 $
7 */
10 * Includes SimpleTest files.
11 */
12 require_once dirname(__FILE__) . '/invoker.php';
13 require_once dirname(__FILE__) . '/test_case.php';
14 require_once dirname(__FILE__) . '/expectation.php';
15 /**#@-*/
Cron.php (https://gitlab.com/surya.ayrus22/Matrimony) PHP · 220 lines
1 <?php
3 if (!defined('BASEPATH'))
4 exit('No direct script access allowed');
5 error_reporting(0);
7 class Cron extends CI_Controller {
108 $recentUserList['title1'] = $this->lang->line("mail_matches_title2");
109 $subject = sprintf($this->lang->line("mail_matches_sub1"), $userData['username']);
110 $body = $this->load->view('template/mail/matches.php',$recentUserList,TRUE);
111 echo '<pre>';print_r($body);exit;
112 $sendmail = $this->Mail->sendmail( '', $userData['email'], $subject, $body ,$attachment ='' );
134 $similarUserInfoList['title1'] = $this->lang->line("mail_matches_title2");
135 $subject = sprintf($this->lang->line("mail_matches_sub2"), $userData['username']);
136 $body = $this->load->view('template/mail/matches.php',$similarUserInfoList,TRUE);
137 echo '<pre>';print_r($body);exit;
138 $sendmail = $this->Mail->sendmail( '', $userData['email'], $subject, $body ,$attachment ='' );
PackageScaffolderAbstract.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 249 lines
1 <?php
2 /**
3 * Zend Framework
45 protected function log($message, $newLine = true)
46 {
47 if (error_reporting() === 0) {
48 return;
49 }
50 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
51 }
61 $this->deleteDirectory($path);
62 $phar->extractTo($path);
63 @unlink($path . '/index.php');
64 @unlink($path . '/build.bat');
65 $this->copyDirectory($path . '/resources', $path, false);
Client.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 228 lines
1 <?php
3 /*
103 $requirePath = str_replace("'", "\\'", $r->getFileName());
104 $symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
105 $errorReporting = error_reporting();
107 $code = <<<EOF
108 <?php
110 error_reporting($errorReporting);
160 * method can be called on those instances.
161 *
162 * If the size of a file is greater than the allowed size (from php.ini) then
163 * an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE.
164 *
Daemon.class.php (https://github.com/sseshachala/Open-Web-Analytics.git) PHP · 380 lines
LocaleTest.php (https://github.com/bhaumik25/zend-framework.git) PHP · 616 lines
1 <?php
3 /**
22 */
24 error_reporting( E_ALL | E_STRICT ); // now required for each test suite
25 // define('TESTS_ZEND_LOCALE_BCMATH_ENABLED', false); // uncomment to disable use of bcmath extension by Zend_Date
28 * Zend_Locale
29 */
30 require_once 'Zend.php';
31 require_once 'Zend/Locale.php';
34 * PHPUnit test case
35 */
36 require_once 'PHPUnit/Framework/TestCase.php';
38 // echo "BCMATH is ", Zend_Locale_Math::isBcmathDisabled() ? 'disabled':'not disabled', "\n";
errors.php (https://github.com/jeffmay/Bonfire.git) PHP · 288 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: errors.php 1672 2008-03-02 04:47:34Z edwardzyang $
7 */
9 /**
10 * @ignore - PHP5 compatibility fix.
11 */
12 if (! defined('E_STRICT')) {
17 * Includes SimpleTest files.
18 */
19 require_once dirname(__FILE__) . '/invoker.php';
20 require_once dirname(__FILE__) . '/test_case.php';
error.php (https://github.com/serafin/fine.git) PHP · 293 lines
1 <?php
3 class f_error
7 const RENDER_FORMAT_TEXT = 'RENDER_FORAMT_TEXT';
9 public static $phpError = array(
10 E_ERROR => 'Fatal Error',
11 E_USER_ERROR => 'User Error',
40 /**
41 * @var int|string PHP Error code or name
42 */
43 public $errorType;
86 {
87 if ($iErrorReportingLevel === null) {
88 return ini_get('error_reporting');
89 }
90 ini_set('error_reporting', $iErrorReportingLevel);
errors_test.php (https://github.com/cgajardo/repositorium.git) PHP · 300 lines
75 new IdenticalExpectation(new FailedExpectation()),
76 'B',
77 'Expected PHP error [B] severity [E_USER_NOTICE] in [b.php] line [100]'));
78 $test->setReturnValue('assert', false);
79 $queue = &new SimpleErrorQueue();
164 function tearDown() {
165 error_reporting($this->_old);
166 }
174 function testNoticeWhenReported() {
175 error_reporting(E_ALL);
176 trigger_error('Ouch!', E_USER_NOTICE);
177 $this->assertError('Ouch!');
tool-file-editor.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 239 lines
1 <?php
2 /**
3 * WPSEO plugin file.
30 ob_start();
31 error_reporting( 0 );
32 do_robots();
33 $robots_content = ob_get_clean();
78 if ( isset( $_POST['htaccessnew'] ) && file_exists( $ht_access_file ) ) {
79 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Writing to .htaccess file and escaping for HTML will break functionality.
80 $ht_access_new = wp_unslash( $_POST['htaccessnew'] );
81 if ( is_writable( $ht_access_file ) ) {
89 if ( is_multisite() ) {
90 $action_url = network_admin_url( 'admin.php?page=wpseo_files' );
91 $yform->admin_header( false, 'wpseo_ms' );
92 }
reset.php (https://github.com/ot2sen/Molajo.git) PHP · 198 lines
1 <?php
2 /**
3 * @version $Id: reset.php 20196 2011-01-09 02:40:25Z ian $
10 defined('_JEXEC') or die;
12 require_once JPATH_COMPONENT.'/controller.php';
14 /**
41 if (JError::isError($return)) {
42 // Get the error message to display.
43 if ($app->getCfg('error_reporting')) {
44 $message = $return->getMessage();
45 } else {
50 $itemid = UsersHelperRoute::getResetRoute();
51 $itemid = $itemid !== null ? '&Itemid='.$itemid : '';
52 $route = 'index.php?option=com_users&view=reset'.$itemid;
54 // Go back to the request form.
Sqlite.php (https://github.com/bicho44/imglistados.git) PHP · 334 lines
1 <?php
2 /**
3 * Kohana Cache Sqlite Driver
105 {
106 // Disable notices for unserializing
107 $ER = error_reporting(~E_NOTICE);
109 // Return the valid cache data
112 // Turn notices back on
113 error_reporting($ER);
115 // Return the resulting data
279 {
280 // Disable notices for unserializing
281 $ER = error_reporting(~E_NOTICE);
283 $result[$row->id] = unserialize($row->cache);
LegacyApacheUrlMatcherTest.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 153 lines
1 <?php
3 /*
16 use Symfony\Component\Routing\Matcher\ApacheUrlMatcher;
18 class LegacyApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase
19 {
20 protected $server;
22 protected function setUp()
23 {
24 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
25 $this->server = $_SERVER;
26 }
sqlite.php (https://bitbucket.org/mslepko/default-kohana.git) PHP · 334 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /**
3 * Kohana Cache Sqlite Driver
9 * @author Kohana Team
10 * @copyright (c) 2009-2012 Kohana Team
11 * @license http://kohanaphp.com/license
12 */
13 class Kohana_Cache_Sqlite extends Cache implements Cache_Tagging, Cache_GarbageCollect {
105 {
106 // Disable notices for unserializing
107 $ER = error_reporting(~E_NOTICE);
109 // Return the valid cache data
112 // Turn notices back on
113 error_reporting($ER);
115 // Return the resulting data
benchmark.php (https://github.com/konscript/roskilde-el-old.git) PHP · 263 lines
1 <?php
3 error_reporting(E_ALL);
7 */
9 require_once '../Matrix.php';
10 require_once 'Stats.php';
20 /**
21 * Simple function to replicate PHP 5 behaviour
22 */
23 function microtime_float() {
249 ?>
250 <ul>
251 <li><a href="benchmark.php?decomposition=all">Complete Benchmark</a>
252 <ul>
253 <li><a href="benchmark.php?decomposition=cholesky">Cholesky</a></li>
AbstractConfigLoader.php (https://gitlab.com/x33n/respond) PHP · 177 lines
1 <?php
3 namespace Guzzle\Service;
84 /**
85 * Load a configuration file (can load JSON or PHP files that return an array when included)
86 *
87 * @param string $filename File to load
100 case 'js':
101 case 'json':
102 $level = error_reporting(0);
103 $json = file_get_contents($filename);
104 error_reporting($level);
116 }
117 break;
118 case 'php':
119 if (!is_readable($filename)) {
120 throw new InvalidArgumentException("Unable to open {$filename} for reading");
ErrorHandler.php (https://github.com/mhoofman/wordpress-heroku.git) PHP · 208 lines
index.php (https://gitlab.com/tekoestudio/tipsy) PHP · 221 lines
1 <?php
3 /*
4 * PHP-Cookie (https://github.com/delight-im/PHP-Cookie)
5 * Copyright (c) delight.im (https://www.delight.im/)
6 * Licensed under the MIT License (https://opensource.org/licenses/MIT)
9 // enable error reporting
10 error_reporting(E_ALL);
11 ini_set('display_errors', 'stdout');
13 header('Content-type: text/plain; charset=utf-8');
15 require __DIR__.'/../vendor/autoload.php';
17 /* BEGIN TEST COOKIES */
LegacyProgressHelperTest.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 229 lines
1 <?php
3 /*
15 use Symfony\Component\Console\Output\StreamOutput;
17 class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
18 {
19 public function setUp()
20 {
21 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
22 }
210 protected function getOutputStream($decorated = true)
211 {
212 return new StreamOutput(fopen('php://memory', 'r+', false), StreamOutput::VERBOSITY_NORMAL, $decorated);
213 }
Error.php (https://github.com/quarkness/piwik.git) PHP · 119 lines
1 <?php
2 /**
3 * Piwik - Open source web analytics
38 {
39 parent::addWriteToScreen();
40 $writerScreen = new Zend_Log_Writer_Stream('php://stderr');
41 $writerScreen->setFormatter( $this->screenFormatter );
42 $this->addWriter($writerScreen);
82 $strReturned = '';
83 $errno = $errno & error_reporting();
85 // problem when using error_reporting with the @ silent fail operator
messages.php (https://github.com/akash6190/pragyan.git) PHP · 262 lines
CITestBase.php (https://github.com/rickogden/joind.in.git) PHP · 216 lines
4 * CodeIgniter
5 *
6 * An open source application development framework for PHP 4.3.2 or newer
7 *
8 * @package CodeIgniter
17 /*
18 |---------------------------------------------------------------
19 | PHP ERROR REPORTING LEVEL
20 |---------------------------------------------------------------
21 |
22 | By default CI runs with error reporting set to ALL. For security
23 | reasons you are encouraged to change this when your site goes live.
24 | For more info visit: http://www.php.net/error_reporting
25 |
26 */
87 | EXT - The file extension. Typically ".php"
88 | SELF - The name of THIS file (typically "index.php")
89 | FCPATH - The full server path to THIS file
90 | BASEPATH - The full server path to the "system" folder
server_status.php (https://github.com/benhosmer/UniServer-for-Drupal-7.git) PHP · 189 lines
1 <?php
2 /*
3 ###############################################################################
4 # Name: server_status.php
5 # Developed By: The Uniform Server Development Team
6 # Modified Last By: Mike Gleaves (Ric)
12 ###############################################################################
13 */
14 //error_reporting(0); // Disable PHP errors and warnings
15 // Comment to Enable for testing
51 }
53 print " PHP INI: php.ini file = ". get_php_tracker()."\n\n";
55 print " APACHE SERVER:\n\n";
GenericEntityChoiceListTest.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 290 lines
1 <?php
3 /*
20 use Doctrine\ORM\Tools\SchemaTool;
22 class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
23 {
24 const SINGLE_INT_ID_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity';
273 public function testLegacyInitShorthandEntityName()
274 {
275 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
277 $item1 = new SingleIntIdEntity(1, 'Foo');
AbstractChoiceListTest.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 345 lines
1 <?php
3 /*
15 * @author Bernhard Schussek <bschussek@gmail.com>
16 */
17 abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
18 {
19 /**
167 public function testLegacyGetIndicesForChoices()
168 {
169 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
171 $choices = array($this->choice1, $this->choice2);
178 public function testLegacyGetIndicesForChoicesPreservesKeys()
179 {
180 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
182 $choices = array(5 => $this->choice1, 8 => $this->choice2);
statistik.php (https://github.com/itpastorn/webbteknik.git) PHP · 245 lines
1 <?php
2 /*
3 * Administrera inriktnings- och paketval
12 */
14 error_reporting(E_ALL);
15 ini_set("display_errors", "on");
24 if ( empty($_SESSION['privilegier']) ) {
25 header("Location: admin-loginform.php");
26 exit;
27 }
33 * Databasanslutning
34 */
35 require_once("dbcx.php");
36 $dbh = dbcx();
load-styles.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 151 lines
ModelChoiceListTest.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 325 lines
1 <?php
3 /*
210 public function testLegacygetIndicesForChoices()
211 {
212 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
214 $item1 = new Item(1, 'Foo');
237 public function testLegacyDifferentEqualObjectsAreChoosen()
238 {
239 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
241 $item = new Item(1, 'Foo');
261 public function testLegacyGetIndicesForNullChoices()
262 {
263 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
265 $item = new Item(1, 'Foo');
Handler.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 385 lines
admin.php (https://github.com/kelios/imshop.git) PHP · 216 lines
DefinitionTest.php (https://gitlab.com/leoplanxxi/dr7-web-buap-2016) PHP · 330 lines
prefreport.php (https://gitlab.com/ElvisAns/tiki) PHP · 218 lines
1 <?php
3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
9 // Usage: From the command line:
10 // php doc/devtools/prefreport.php > prefreport.csv
11 //
12 // also check out doc/devtools/securitycheck.php to see in which files are
14 //
16 require_once 'tiki-setup.php';
17 $prefslib = TikiLib::lib('prefs');
54 $data = [];
55 error_reporting(E_ALL);
56 ini_set('display_errors', 'on');
ResetController.php (https://github.com/Hackwar/joomla-cms.git) PHP · 199 lines
1 <?php
2 /**
3 * @package Joomla.Site
47 {
48 // Get the error message to display.
49 if ($app->get('error_reporting'))
50 {
51 $message = $return->getMessage();
58 // Go back to the request form.
59 $this->setRedirect(Route::_('index.php?option=com_users&view=reset', false), $message, 'error');
61 return false;
66 // Go back to the request form.
67 $message = Text::sprintf('COM_USERS_RESET_REQUEST_FAILED', $model->getError());
68 $this->setRedirect(Route::_('index.php?option=com_users&view=reset', false), $message, 'notice');
70 return false;
LegacyProgressHelperTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 232 lines
1 <?php
3 /*
18 * @group legacy
19 */
20 class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
21 {
22 protected function setUp()
23 {
24 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
25 }
213 protected function getOutputStream($decorated = true)
214 {
215 return new StreamOutput(fopen('php://memory', 'r+', false), StreamOutput::VERBOSITY_NORMAL, $decorated);
216 }
BigInteger.php (https://github.com/ccxt/ccxt.git) PHP · 635 lines
LegacyTableHelperTest.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 295 lines
1 <?php
3 /*
15 use Symfony\Component\Console\Output\StreamOutput;
17 class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
18 {
19 protected $stream;
21 protected function setUp()
22 {
23 $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
24 $this->stream = fopen('php://memory', 'r+');
291 rewind($output->getStream());
293 return str_replace(PHP_EOL, "\n", stream_get_contents($output->getStream()));
294 }
295 }
index.php (https://github.com/damko/RestIgniter-hmvc.git) PHP · 206 lines
ErrorHandler.php (https://bitbucket.org/larryg/powerhut.git) PHP · 165 lines
1 <?php
3 /*
56 * Registers the error handler.
57 *
58 * @param integer $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable)
59 * @param Boolean $displayErrors Display errors (for dev environment) or just log they (production usage)
60 *
77 public function setLevel($level)
78 {
79 $this->level = null === $level ? error_reporting() : $level;
80 }
92 /**
93 * @throws ContextErrorException When error_reporting returns error
94 */
95 public function handle($level, $message, $file = 'unknown', $line = 0, $context = array())
download.php (https://github.com/fevrier/glossaire.git) PHP · 114 lines
Client.php (https://gitlab.com/Isaki/le331.fr) PHP · 226 lines
1 <?php
3 /*
101 $requirePath = str_replace("'", "\\'", $r->getFileName());
102 $symfonyPath = str_replace("'", "\\'", dirname(dirname(dirname(__DIR__))));
103 $errorReporting = error_reporting();
105 $code = <<<EOF
106 <?php
108 error_reporting($errorReporting & ~E_USER_DEPRECATED);
158 * method can be called on those instances.
159 *
160 * If the size of a file is greater than the allowed size (from php.ini) then
161 * an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE.
162 *
convert_incubator.php (https://github.com/bhaumik25/zend-framework.git) PHP · 174 lines
test4.php (https://github.com/viglesiasce/testlink.git) PHP · 143 lines
passing_arguments.php (https://gitlab.com/iranjith4/hhvm) PHP · 145 lines
61 // PHP5 32, allowed quietly, but does not change the original argument
62 // PHP5 64 allowed with warning "PHP Strict standards: Only variables
63 // should be passed by reference", but does not change the original argument
64 // HHVM, allowed quietly, but does not change the original argument
119 g($z -= 2); // PHP5 32, allowed quietly, but does not change the original argument
120 // PHP5 64 allowed with warning "PHP Strict standards: Only variables
121 // should be passed by reference", but does not change the original argument
122 // HHVM, allowed quietly, but does not change the original argument
129 g(--$z); // PHP5 32, allowed quietly, but does not change the original argument
130 // PHP5 64 allowed with warning "PHP Strict standards: Only variables
131 // should be passed by reference", but does not change the original argument
132 // HHVM, allowed quietly, but does not change the original argument
140 g(k()); // PHP5 32, allowed quietly, but (presumably) does not change the original argument
141 // PHP5 64 allowed with warning "PHP Strict standards: Only variables
142 // should be passed by reference", but (presumably) does not change the original argument
143 // k() = 10; // All 3, Error: Can't use function return value in write context
mysqli_stmt_attr_set.php (https://gitlab.com/iranjith4/hhvm) PHP · 246 lines
1 <?php
2 require_once("connect.inc");
35 for ($i = 0; $i < 2; $i++) {
36 do {
37 $invalid_attr = mt_rand(-1 * (min(4294967296, PHP_INT_MAX) + 1), min(4294967296, PHP_INT_MAX));
38 } while (in_array($invalid_attr, $valid_attr));
39 if (false !== ($tmp = @mysqli_stmt_attr_set($stmt, $invalid_attr, 0))) {
214 $stmt = mysqli_stmt_init($link);
215 $stmt->prepare("SELECT label FROM test_mysqli_stmt_attr_set_table_1");
216 if (true !== ($tmp = $stmt->attr_set(MYSQLI_STMT_ATTR_PREFETCH_ROWS, PHP_INT_MAX)))
217 printf("[023] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
218 $stmt->close();
241 print "done!";
242 ?>
243 <?php error_reporting(0); ?>
244 <?php
function.restore-exception-handler.html (https://bitbucket.org/thncr/manuals.git) HTML · 84 lines
10 <div class="next" style="text-align: right; float: right;"><a href="function.set-error-handler.html">set_error_handler</a></div>
11 <div class="up"><a href="ref.errorfunc.html">错误处理 函数</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="function.restore-exception-handler" class="refentry">
14 <div class="refnamediv">
15 <h1 class="refname">restore_exception_handler</h1>
16 <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">restore_exception_handler</span> — <span class="dc-title">
17 恢复之前定义过的异常处理函数。
18 </span></p>
72 <li class="member"> <span class="function"><a href="function.set-error-handler.html" class="function" rel="rdfs-seeAlso">set_error_handler()</a> - 设置一个用户定义的错误处理函数</span></li>
73 <li class="member"> <span class="function"><a href="function.restore-error-handler.html" class="function" rel="rdfs-seeAlso">restore_error_handler()</a> - 还原之前的错误处理函数</span></li>
74 <li class="member"> <span class="function"><a href="function.error-reporting.html" class="function" rel="rdfs-seeAlso">error_reporting()</a> - 设置应该报告何种 PHP 错误</span></li>
75 </ul>
76 </p>
ErrorHandler.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 171 lines
1 <?php
3 /*
56 * Registers the error handler.
57 *
58 * @param integer $level The level at which the conversion to Exception is done (null to use the error_reporting() value and 0 to disable)
59 * @param Boolean $displayErrors Display errors (for dev environment) or just log they (production usage)
60 *
77 public function setLevel($level)
78 {
79 $this->level = null === $level ? error_reporting() : $level;
80 }
122 if ($this->displayErrors && error_reporting() & $level && $this->level & $level) {
123 // make sure the ContextErrorException class is loaded (https://bugs.php.net/bug.php?id=65322)
124 if (!class_exists('Symfony\Component\Debug\Exception\ContextErrorException')) {
125 require __DIR__.'/Exception/ContextErrorException.php';
32chartreadwrite.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 131 lines
7 date_default_timezone_set('Europe/London');
9 define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
11 date_default_timezone_set('Europe/London');
33 * @package PHPExcel
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
36 * @version ##VERSION##, ##DATE##
42 /** PHPExcel_IOFactory */
43 include 'PHPExcel/IOFactory.php';
45 $inputFileType = 'Excel2007';
116 echo date('H:i:s') , " Write Tests to Excel2007 file " , EOL;
117 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
118 $objWriter->setIncludeCharts(TRUE);
119 $objWriter->save($outputFileName);
ErrorHandlerRegistryTest.php (https://github.com/szeber/yapep_base.git) PHP · 356 lines
1 <?php
2 declare(strict_types=1);
4 namespace PHPUnit\Framework\Error\Registry;
6 use Mockery\MockInterface;
53 $this->terminator = \Mockery::mock(ITerminatable::class);
55 $this->originalErrorReportingLevel = error_reporting();
56 }
58 protected function tearDown(): void
59 {
60 error_reporting($this->originalErrorReportingLevel);
61 parent::tearDown();
62 }
example.php (https://bitbucket.org/valmy/openx.git) PHP · 105 lines
1 <?php
2 // +-----------------------------------------------------------------------+
3 // | Copyright (c) 2002-2005, Richard Heyes, Harald Radi |
30 // | |
31 // +-----------------------------------------------------------------------+
32 // | Author: Richard Heyes <http://www.phpguru.org/> |
33 // | Harald Radi <harald.radi@nme.at> |
34 // +-----------------------------------------------------------------------+
35 //
36 // $Id$
37 //error_reporting(E_ALL | E_STRICT);
38 //require_once('HTML/TreeMenu.php');
39 require_once('../TreeMenu.php');
41 $icon = 'folder.gif';
php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines
11 </PROPS>
12 <RULES IGNORE_CASE="TRUE">
13 <SPAN TYPE="MARKUP" DELEGATE="PHP">
14 <BEGIN><?php</BEGIN>
16 </SPAN>
18 <SPAN TYPE="MARKUP" DELEGATE="PHP">
19 <BEGIN><?</BEGIN>
20 <END>?></END>
21 </SPAN>
23 <SPAN TYPE="MARKUP" DELEGATE="PHP">
24 <BEGIN><%=</BEGIN>
25 <END>%></END>
65 <RULES SET="TAGS" DEFAULT="MARKUP">
66 <SPAN TYPE="MARKUP" DELEGATE="PHP">
67 <BEGIN><?php</BEGIN>