php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44962 error_log returns true not integer on success
Submitted: 2008-05-10 16:12 UTC Modified: 2008-11-05 17:01 UTC
From: sven-ullmann at v1958 dot ncsrv dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sven-ullmann at v1958 dot ncsrv dot de
New email:
PHP Version: OS:

 

 [2008-05-10 16:12 UTC] sven-ullmann at v1958 dot ncsrv dot de
Description:
------------
in documentation described error_log returns integer but testet on linux php 5.x it does return true on success.
Maybe it's a Bug

With best regards

Sven Ullmann

Reproduce code:
---------------
php -r "var_dump( error_log( 'test' ) );";

// returns: true

Expected result:
----------------
integer as it is described

Actual result:
--------------
boolean

Patches

Pull Requests

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC