| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2020-04-20 13:30 UTC] requinix@php.net
 
-Status: Open
+Status: Not a bug
  [2020-04-20 13:30 UTC] requinix@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Description: ------------ (Sorry if my English isn't always correct, I'm still struggling with the language (and I'm using DeepL to help me)) Version of PHP where the bug was found: 7.4, 7.3, 7.2 (WAMP et Infomaniak) For some reason, this bug occurs when there is an HTML tag containing an empty background-url style attribute : <div style="background-image: url('');"></div> This line generates, depending on the content of the defined function, a double execution of the function. Test script: --------------- I made a small demonstration of the bug in a few lines: https://test.vraq.fr/php_css_bug/ Expected result: ---------------- An entry must be present in the log file when the page is loaded. Actual result: -------------- Two entries were made in the file as if the function had been executed twice. I have the same problem with a mail function. Conversely, if you put an ECHO in the function, it will be displayed only once.