php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19026 warn_plus_overloading setting doesn't warn
Submitted: 2002-08-21 12:55 UTC Modified: 2002-08-25 07:07 UTC
From: pedrograca at hotpop dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.2.2 OS: Win2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pedrograca at hotpop dot com
New email:
PHP Version: OS:

 

 [2002-08-21 12:55 UTC] pedrograca at hotpop dot com
Hi, I've run the script

<?php
  echo '\'a\' . \'b\' = ' . ('a' . 'b') . '<br>';
  echo '\'a\' + \'b\' = ' . ('a' + 'b') . '<br>';  // !WARN!
  echo '"a" . "b" = ' . ("a" . "b") . '<br>';
  echo '"a" + "b" = ' . ("a" + "b") . '<br>';      // !WARN!
  echo 'a . b = ' . (a . b) . '<br>';
  echo 'a + b = ' . (a + b) . '<br>';              // !WARN!

  echo '\'1\' . \'2\' = ' . ('1' . '2') . '<br>';
  echo '\'1\' + \'2\' = ' . ('1' + '2') . '<br>';  // !WARN!
  echo '"1" . "2" = ' . ("1" . "2") . '<br>';
  echo '"1" + "2" = ' . ("1" + "2") . '<br>';      // !WARN!
  echo '1 . 2 = ' . (1 . 2) . '<br>';
  echo '1 + 2 = ' . (1 + 2) . '<br>';

  echo '\'5\' . \'k\' = ' . ('5' . 'k') . '<br>';
  echo '\'5\' + \'k\' = ' . ('5' + 'k') . '<br>';  // !WARN!
  echo '"5" . "k" = ' . ("5" . "k") . '<br>';
  echo '"5" + "k" = ' . ("5" + "k") . '<br>';      // !WARN!
  echo '5 . k = ' . (5 . k) . '<br>';
  echo '5 + k = ' . (5 + k) . '<br>';              // !WARN!
?>

with "warn_plus_overloading = On" expecting to generate some warnings (on lines with // !WARN!), however nothing ever got reported (except the use of undefined constants).

Am I misinterpreting the "warn_plus_overloading" function?
in PHP.INI I have
  error_reporting       = E_ALL
  display_errors        = On     ; will set to Off soon
  log_errors            = On
  error_log             = C:/WebSite/phperror.log
  track_errors          = Off
  warn_plus_overloading = On     ; tested with Off too

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-23 20:58 UTC] sniper@php.net
That php.ini directive is just one relic from PHP3 and is not used in PHP 4 at all.

 [2002-08-25 07:07 UTC] pedrograca at hotpop dot com
oh, ok

maybe it's a documentation problem?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC