RE: [PHP-DEV] RE: [Zend Engine 2] Bug or misconfiguration? wrong type for bool constants

From: Date: Tue, 06 Aug 2002 08:33:46 +0000
Subject: RE: [PHP-DEV] RE: [Zend Engine 2] Bug or misconfiguration? wrong type for bool constants
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-86559@lists.php.net to get a copy of this message
ok, thanks for testing ... I've made more tests, and here are the results : here is the test script: test.php <?php var_dump(PHP_VERSION, true, TRUE); ?> 1- on command line : C:\php>php test.php outputs : string(9) "4.3.0-dev" bool(true) bool(true) 2- but called from apache : http://localhost/test.php it outputs : string(11) "PHP_VERSION" string(4) "true" string(4) "TRUE" I guess the problem comes from the php4apache.dll ? Can you try the same test with your config ? here is a part of my phpinfo: PHP Version 4.3.0-dev System Windows NT localhost 5.0 build 2195 Build Date Jul 1 2002 01:00:07 Server API Apache Virtual Directory Support enabled Configuration File (php.ini) Path c:\php\php.ini API Versions: PHP: 20020307 PHP Extension: 20010927 Zend Extension: 20010710 Debug Build no Thread Safety enabled Registered PHP Streams http php ftp compress.zlib apache Apache for Windows 95/NT Apache Version Apache/1.3.24 Apache Release 10324100 Apache API Version 19990320 thanks > -----Original Message----- > From: Andrey Hristov [mailto:ahristov@icygen.com] > Sent: mardi 6 août 2002 10:08 > To: phpsurf > Cc: php-dev@lists.php.net > Subject: Re: [PHP-DEV] RE: [Zend Engine 2] Bug or misconfiguration? > wrong type for bool constants > > > C:\apache\php>php-cgi.exe > <?php > var_dump(true); > var_dump(TRUE); > ?> > ^Z > X-Powered-By: PHP/4.3.0-dev > Content-type: text/html; charset=utf-8 > > bool(true) > bool(true) > > Regards, > Andrey > > P.S. > Freshly downloaded zend2-alpha2 was used. > > ----- Original Message ----- > From: "phpsurf" <phpsurf@ifrance.com> > To: "Andi Gutmans" <andi@zend.com>; "Wei He" > <hewei@mail.ied.ac.cn> > Cc: <engine2@lists.zend.com>; <php-dev@lists.php.net> > Sent: Tuesday, August 06, 2002 12:54 AM > Subject: [PHP-DEV] RE: [Zend Engine 2] Bug or misconfiguration? wrong type > for bool constants > > > > Hi > > > > I don't know if a solution was found to that problem > > but it comes again for me with php430 alpha2 on windows 2000 > > > > pre-defined constants true and false have the wrong type: > > with php421: > > <? > > var_dump(true); > > ?> > > outputs > > bool(true) > > > > but with php430alpha2, it outputs: > > string(4) "true" > > > > this makes every boolean test fail. > > > > andi, you talked about a problem with the binaries ... > > do you know where I can find a working windows binary snapshot ? > > > > thanks > > > > > -----Original Message----- > > > From: Andi Gutmans [mailto:andi@zend.com] > > > Sent: dimanche 16 juin 2002 18:48 > > > To: Wei He > > > Cc: engine2@lists.zend.com > > > Subject: Re: [Zend Engine 2] Bug or misconfiguration? > > > > > > > > > This is very strange. It works for me under Windows. > > > Maybe the person who built the binaries screwed up? > > > > > > Andi > > > > > > At 09:55 PM 6/16/2002 +0800, Wei He wrote: > > > >On Sun, 16 Jun 2002, Andi Gutmans wrote: > > > > > > > > > That sounds very weird. What does the following script output: > > > > > <? > > > > > var_dump(true); > > > > > > > > > > > > >Notice: Use of undefined constant true - assumed 'true' in c:\program > > > >files\apache group\apache\htdocs\test2.php on line 3 > > > >string(4) "true" > > > > > > > >Partial phpinfo outputs: > > > > > > > >System Windows NT localhost 5.0 build 2195 > > > >Build Date Jun 1 2002 20:28:22 > > > >Server API Apache > > > >Virtual Directory Support enabled > > > >Configuration File (php.ini) Path C:\WINNT\php.ini > > > >PHP API No. 20020307 > > > >PHP Extensions API No. 20010927 > > > >Zend Extensions API No. 20010710 > > > >Debug Build no > > > >Thread Safety enabled > > > >PHP Streams enabled > > > > > > > >allow_call_time_pass_reference Off Off > > > >allow_url_fopen 1 1 > > > >always_populate_raw_post_data 0 0 > > > >arg_separator.input & & > > > >arg_separator.output & & > > > >asp_tags Off Off > > > >auto_append_file no value no value > > > >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_functions no value no value > > > >display_errors On On > > > >display_startup_errors On On > > > >doc_root no value no value > > > >enable_dl On On > > > >error_append_string no value no value > > > >error_log no value no value > > > >error_prepend_string no value no value > > > >error_reporting 2047 2047 > > > >expose_php On On > > > >extension_dir C:\php\extensions C:\php\extensions > > > >file_uploads 1 1 > > > >gpc_order GPC GPC > > > >highlight.bg #FFFFFF #FFFFFF > > > >highlight.comment #FF9900 #FF9900 > > > >highlight.default #0000CC #0000CC > > > >highlight.html #000000 #000000 > > > >highlight.keyword #006600 #006600 > > > >highlight.string #CC0000 #CC0000 > > > >html_errors On On > > > >ignore_repeated_errors Off Off > > > >ignore_repeated_source Off Off > > > >ignore_user_abort Off Off > > > >implicit_flush Off Off > > > >include_path .;c:\php\pear .;c:\php\pear > > > >log_errors On On > > > >log_errors_max_len 1024 1024 > > > >magic_quotes_gpc Off Off > > > >magic_quotes_runtime Off Off > > > >magic_quotes_sybase Off Off > > > >max_execution_time 30 30 > > > >open_basedir no value no value > > > >output_buffering no value no value > > > >output_handler no value no value > > > >post_max_size 8M 8M > > > >precision 14 14 > > > >register_argc_argv Off Off > > > >register_globals Off Off > > > >safe_mode Off Off > > > >safe_mode_exec_dir no value no value > > > >safe_mode_gid Off Off > > > >safe_mode_include_dir no value no value > > > >sendmail_from me@localhost.com me@localhost.com > > > >sendmail_path no value no value > > > >short_open_tag Off Off > > > >SMTP localhost localhost > > > >sql.safe_mode Off Off > > > >track_errors Off Off > > > >unserialize_callback_func no value no value > > > >upload_max_filesize 2M 2M > > > >upload_tmp_dir no value no value > > > >user_dir no value no value > > > >variables_order GPCS GPCS > > > >xmlrpc_error_number 0 0 > > > >xmlrpc_errors Off Off > > > >y2k_compliance Off Off > > > > > > > > > > > >Wei He > > > > > > > > __________________________________________________________________ > __________ > __ > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif

« previous php.dev (#86559) next »