PageRenderTime 8ms queryFilters 1ms Sphinxql 3008ms GetByIds 259ms meta 0ms repositoryFilters 4ms languageFilters 4ms sourceFilters 1ms

364,113 results for 'php empty repo:masnug/grc276-blog-laravel' (8 ms)

Source

Language

Repository

update-core.php https://bitbucket.org/crafttheweb/wordpress-fold.git | PHP | 756 lines
519
520	$php_version    = phpversion();
521	$mysql_version  = $wpdb->db_version();
524	$wp_version = '3.4';
525	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
526	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
534	if ( !$mysql_compat && !$php_compat )
535		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
536	elseif ( !$php_compat )
536	elseif ( !$php_compat )
537		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
538	elseif ( !$mysql_compat )
746<script type="text/javascript">
747window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
748</script>
update-core.php https://bitbucket.org/stratworkouts/wordpress.git | PHP | 717 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
475
476	$php_version    = phpversion();
477	$mysql_version  = $wpdb->db_version();
480	$wp_version = '3.4.2';
481	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
482	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
490	if ( !$mysql_compat && !$php_compat )
491		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
492	elseif ( !$php_compat )
492	elseif ( !$php_compat )
493		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
494	elseif ( !$mysql_compat )
expressions_parsing.php https://bitbucket.org/doubleface/jelix-jpu | PHP | 304 lines
93        '@abstract.as.break.case.catch.class.clone@'=>'${jTplConfig::$localesGetter}(\'abstract.as.break.case.catch.class.clone\')',
94        '@const.continue.declare.default.do.echo.else.elseif.empty@'=>'${jTplConfig::$localesGetter}(\'const.continue.declare.default.do.echo.else.elseif.empty\')',
95        '@exit.final.for.foreach.function.global.if.implements.instanceof@'=>'${jTplConfig::$localesGetter}(\'exit.final.for.foreach.function.global.if.implements.instanceof\')',
102    protected $varexprTrustedMode = array(
103        '$aaa.PHP_VERSION'=>'$t->_vars[\'aaa\'].PHP_VERSION',
104    );
167        'isset($t[5])'  =>array('Dans le tag  du template , le code php isset n\'est pas autorisé'),
168        'empty($aa)'    =>array('Dans le tag  du template , le code php empty n\'est pas autorisé'),
169        '$aa == 123'    =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
175        '$aa >> 123'    =>array('Dans le tag  du template , le code php >> n\'est pas autorisé'),
176        '$aa == false'  =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
177        '$aa == true'   =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
195    protected $badvarexprUnTrustedMode = array(
196        '$aaa.PHP_VERSION'=>array('Dans le tag  du template , les constantes (PHP_VERSION) sont interdites'),
197    );
update-core.php https://github.com/webgefrickel/frckl-init-wordpress.git | PHP | 1,003 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
671
672	$php_version    = phpversion();
673	$mysql_version  = $wpdb->db_version();
675	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
676	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
677	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
685	if ( !$mysql_compat && !$php_compat )
686		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
687	elseif ( !$php_compat )
687	elseif ( !$php_compat )
688		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
689	elseif ( !$mysql_compat )
update-core.php https://bitbucket.org/cubeee/wp-fin.git | PHP | 632 lines
52		} else {
53			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
54			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
59			if ( !$mysql_compat && !$php_compat )
60				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
61			elseif ( !$php_compat )
61			elseif ( !$php_compat )
62				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
63			elseif ( !$mysql_compat )
154				'version'       => $wp_version . '.1.next.minor',
155				'php_version'   => $required_php_version,
156				'mysql_version' => $required_mysql_version,
422	<script type="text/javascript">
423	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
424	</script>
update-core.php https://bitbucket.org/cubeee/wp-fin.git | PHP | 1,054 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
713
714	$php_version    = phpversion();
715	$mysql_version  = $wpdb->db_version();
717	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
718	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
719	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
727	if ( !$mysql_compat && !$php_compat )
728		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
729	elseif ( !$php_compat )
729	elseif ( !$php_compat )
730		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
731	elseif ( !$mysql_compat )
book.var.php https://github.com/ssbalakumar/web-php.git | PHP | 84 lines
1<?php
2include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
9    0 => 'index.php',
10    1 => 'PHP Manual',
11  ),
18  array (
19    0 => 'book.var.php',
20    1 => 'Variable handling',
23  array (
24    0 => 'refs.basic.vartype.php',
25    1 => 'Variable and Type Related Extensions',
28  array (
29    0 => 'class.reflectionexception.php',
30    1 => 'ReflectionException',
83
84<ul class="chunklist chunklist_book"><li><a href="intro.var.php">Introduction</a></li><li><a href="var.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="var.requirements.php">Requirements</a></li><li><a href="var.installation.php">Installation</a></li><li><a href="var.configuration.php">Runtime Configuration</a></li><li><a href="var.resources.php">Resource Types</a></li></ul></li><li><a href="var.constants.php">Predefined Constants</a></li><li><a href="ref.var.php">Variable handling Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.boolval.php">boolval</a> — Get the boolean value of a variable</li><li><a href="function.debug-zval-dump.php">debug_zval_dump</a> — Dumps a string representation of an internal zend value to output</li><li><a href="function.doubleval.php">doubleval</a> — Alias of floatval</li><li><a href="function.empty.php">empty</a> — Determine whether a variable is empty</li><li><a href="function.floatval.php">floatval</a> — Get float value of a variable</li><li><a href="function.get-defined-vars.php">get_defined_vars</a> — Returns an array of all defined variables</li><li><a href="function.get-resource-type.php">get_resource_type</a> — Returns the resource type</li><li><a href="function.gettype.php">gettype</a> — Get the type of a variable</li><li><a href="function.import-request-variables.php">import_request_variables</a> — Import GET/POST/Cookie variables into the global scope</li><li><a href="function.intval.php">intval</a> — Get the integer value of a variable</li><li><a href="function.is-array.php">is_array</a> — Finds whether a variable is an array</li><li><a href="function.is-bool.php">is_bool</a> — Finds out whether a variable is a boolean</li><li><a href="function.is-callable.php">is_callable</a> — Verify that the contents of a variable can be called as a function</li><li><a href="function.is-double.php">is_double</a> — Alias of is_float</li><li><a href="function.is-float.php">is_float</a> — Finds whether the type of a variable is float</li><li><a href="function.is-int.php">is_int</a> — Find whether the type of a variable is integer</li><li><a href="function.is-integer.php">is_integer</a> — Alias of is_int</li><li><a href="function.is-long.php">is_long</a> — Alias of is_int</li><li><a href="function.is-null.php">is_null</a> — Finds whether a variable is NULL</li><li><a href="function.is-numeric.php">is_numeric</a> — Finds whether a variable is a number or a numeric string</li><li><a href="function.is-object.php">is_object</a> — Finds whether a variable is an object</li><li><a href="function.is-real.php">is_real</a> — Alias of is_float</li><li><a href="function.is-resource.php">is_resource</a> — Finds whether a variable is a resource</li><li><a href="function.is-scalar.php">is_scalar</a> — Finds whether a variable is a scalar</li><li><a href="function.is-string.php">is_string</a> — Find whether the type of a variable is string</li><li><a href="function.isset.php">isset</a> — Determine if a variable is set and is not NULL</li><li><a href="function.print-r.php">print_r</a> — Prints human-readable information about a variable</li><li><a href="function.serialize.php">serialize</a> — Generates a storable representation of a value</li><li><a href="function.settype.php">settype</a> — Set the type of a variable</li><li><a href="function.strval.php">strval</a> — Get string value of a variable</li><li><a href="function.unserialize.php">unserialize</a> — Creates a PHP value from a stored representation</li><li><a href="function.unset.php">unset</a> — Unset a given variable</li><li><a href="function.var-dump.php">var_dump</a> — Dumps information about a variable</li><li><a href="function.var-export.php">var_export</a> — Outputs or returns a parsable string representation of a variable</li></ul></li></ul></div><?php manual_footer(); ?>
install_step3.php https://code.google.com/p/evedev-kb/ | PHP | 144 lines
1<?php
2/**
5
6if(!$installrunning) {header('Location: index.php');die();}
7$stoppage = true;
13
14if (!empty($_POST['submit']) && $_POST['submit'] == 'Test')
15{
22
23if (empty($_SESSION['sql']['host']))
24{
30    
31if (file_exists('../kbconfig.php') && (empty($_POST['submit']) || $_POST['submit'] != 'Test'))
32{
32{
33	if (filesize('../kbconfig.php') > 0)
34	{
post_form_options.inc.php git://github.com/unpush/p2-php.git | PHP | 337 lines
91
92$post_backup_key = PostDataStore::getKeyForBackup($host, $bbs, $key, !empty($_REQUEST['newthread']));
93$post_config_key = PostDataStore::getKeyForConfig($host, $bbs);
170//  2ch����������
171if (P2Util::isHost2chs($host) and file_exists($_conf['sid2ch_php'])) {
172    $htm['maru_post'] = '<span title="2ch��ID�̎g�p"><input type="checkbox" id="maru" name="maru" value="1">'
221        $_dpreview_st->setSettingArray();
222        if (!empty($_dpreview_st->setting_array['BBS_NONAME_NAME'])) {
223            $_dpreview_noname = $_dpreview_st->setting_array['BBS_NONAME_NAME'];
255<div id="dp_msg" class="prvw_msg"></div>
256<!-- <div id="dp_empty" class="prvw_msg">(empty)</div> -->
257</fieldset>
272$htm['orig_msg'] = '';
273if ((basename($_SERVER['SCRIPT_NAME']) == 'post_form.php' || !empty($_GET['inyou'])) && !empty($_GET['resnum'])) {
274    $q_resnum = $_GET['resnum'];
bootstrap.inc.php https://bitbucket.org/sundeeppeswani/tell-a-friend-www.git | PHP | 84 lines
1<?php defined( 'VALID_INCLUSION' ) or die();
2
2
3require_once './configuration.php';
4require_once './system/lib/exceptions.inc.php';
4require_once './system/lib/exceptions.inc.php';
5require_once './system/lib/classes/class.database.php';
6
12	if ( USE_CLEAN_URLS == false ) {
13		return SITE_URL . 'index.php' . ( empty( $params ) ? '' : '?' . http_build_query( $array ) );
14	}
52function post_exists( $key, $type = null, $keys = null ) {
53	if ( empty( $_POST ) ) {
54		return false;
56
57	if ( empty( $_POST[ $key ] ) ) {
58		return false;
update-core.php https://bitbucket.org/matthieuboutron/dinner-thrill.git | PHP | 640 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3.2';
410	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
411	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
419	if ( !$mysql_compat && !$php_compat )
420		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
421	elseif ( !$php_compat )
421	elseif ( !$php_compat )
422		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
423	elseif ( !$mysql_compat )
631<script type="text/javascript">
632window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
633</script>
update-core.php https://bitbucket.org/crafttheweb/wordpress-fold.git | PHP | 546 lines
46		} else {
47			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
48			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
53			if ( !$mysql_compat && !$php_compat )
54				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
55			elseif ( !$php_compat )
55			elseif ( !$php_compat )
56				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
57			elseif ( !$mysql_compat )
109			$('dismissed-updates').show();
110			$('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')});
111			$('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');});
361	<script type="text/javascript">
362	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
363	</script>
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
50// Load object
51if ($id > 0 || ! empty($ref))
52{
159
160	$linkback='<a href="'.DOL_URL_ROOT.'/comm/propal/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
161
Recommender_Bayes.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 976 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
406		foreach($ranking_array as $SK => $MSD) {
407			// Check for empty SK, which would only happen if there was an empty project in the array.
408			// KEL 01/30/08
416				$msg .= "\nStateID={$state_array['sid']}\n";
417				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
418				continue;
581		foreach($ranking_array as $SK => $MSD) {
582			// Check for empty SK, which would only happen if there was an empty project in the array.
583			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
661		foreach($ranking_array as $SK => $MSD) {
662			// Check for empty SK, which would only happen if there was an empty project in the array.
663			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
Recommender.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 985 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
413		foreach($ranking_array as $SK => $MSD) {
414			// Check for empty SK, which would only happen if there was an empty project in the array.
415			// KEL 01/30/08
423				$msg .= "\nStateID={$state_array['sid']}\n";
424				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
425				continue;
588		foreach($ranking_array as $SK => $MSD) {
589			// Check for empty SK, which would only happen if there was an empty project in the array.
590			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
670		foreach($ranking_array as $SK => $MSD) {
671			// Check for empty SK, which would only happen if there was an empty project in the array.
672			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
DooValidator.php https://bitbucket.org/cidious/vault_doo | PHP | 1,237 lines
1<?php
2/**
78 * <?php
79 * //in protected/config/forms/example.php
80 * return array(
129	/**
130	 * Use PHP empty method to test for required (or optional)
131	 */
131	 */
132	const REQ_MODE_NULL_EMPTY = 'nullempty';
133
322
323					$vIsEmpty = ($this->requireMode == DooValidator::REQ_MODE_NULL_EMPTY && ($v === null || $v === '') ||
324								 $this->requireMode == DooValidator::REQ_MODE_NULL_ONLY  && $v === null) ? true : false;
938    /**
939     * Validate Not Empty. Input cannot be empty.
940     *
update-core.php https://github.com/webgefrickel/frckl-init-wordpress.git | PHP | 632 lines
52		} else {
53			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
54			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
59			if ( !$mysql_compat && !$php_compat )
60				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
61			elseif ( !$php_compat )
61			elseif ( !$php_compat )
62				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
63			elseif ( !$mysql_compat )
154				'version'       => $wp_version . '.1.next.minor',
155				'php_version'   => $required_php_version,
156				'mysql_version' => $required_mysql_version,
423	<script type="text/javascript">
424	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
425	</script>
update-core.php https://bitbucket.org/chimbien/mekongtest.git | PHP | 546 lines
46		} else {
47			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
48			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
53			if ( !$mysql_compat && !$php_compat )
54				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
55			elseif ( !$php_compat )
55			elseif ( !$php_compat )
56				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
57			elseif ( !$mysql_compat )
109			$('dismissed-updates').show();
110			$('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')});
111			$('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');});
361	<script type="text/javascript">
362	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
363	</script>
zend.validator.not-empty.rst https://github.com/gullij/zf2-documentation.git | Unknown | 109 lines
25
26Par défaut, ce validateur fonctionne différement de la fonction *PHP* ``empty()``. En particulier, ce validateur
27va évaluer l'entier **0** et la chaîne '**0**' comme vides.
40
41   Sans configuration ajoutée, ``Zend\Validate\NotEmpty`` diffère de *PHP*.
42
70
71- **php**\  : Retourne ``FALSE`` lorsque la fonction *PHP* ``empty()`` retournerait ``TRUE``.
72
85   // Retourne false pour 0
86   $validator = new Zend\Validate\NotEmpty(Zend\Validate\NotEmpty::INTEGER);
87
89   $validator = new Zend\Validate\NotEmpty(
90       Zend\Validate\NotEmpty::INTEGER + Zend\NotEmpty\NotEmpty::ZERO
91   );
zend.validator.not-empty.rst https://github.com/rixrix/zf2-documentation.git | Unknown | 109 lines
25
26Par défaut, ce validateur fonctionne différement de la fonction *PHP* ``empty()``. En particulier, ce validateur
27va évaluer l'entier **0** et la chaine '**0**' comme vides.
40
41   Sans configuration ajoutée, ``Zend\Validate\NotEmpty`` diffère de *PHP*.
42
70
71- **php**\  : Retourne ``FALSE`` lorsque la fonction *PHP* ``empty()`` retournerait ``TRUE``.
72
85   // Retourne false pour 0
86   $validator = new Zend\Validate\NotEmpty(Zend\Validate\NotEmpty::INTEGER);
87
89   $validator = new Zend\Validate\NotEmpty(
90       Zend\Validate\NotEmpty::INTEGER + Zend\NotEmpty\NotEmpty::ZERO
91   );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21