php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8441 php_syslog undefined
Submitted: 2000-12-27 13:47 UTC Modified: 2001-05-27 22:15 UTC
From: ler at lerctr dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4 OS: UnixWare 7.1.1
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: ler at lerctr dot org
New email:
PHP Version: OS:

 

 [2000-12-27 13:47 UTC] ler at lerctr dot org
When compiling and installing php 4.0.4 on UnixWare 7.1.1 
with the UDK (UnixWare/OpenServer Development Kit) 7.1.1b 
compiler, using:
$ cat ler.conf
CC="cc -Xb" CFLAGS="-O" ./configure --with-apxs=/usr/internet/apache/bin/apxs \
        --enable-safe-mode --enable-calendar --enable-ftp \
        --with-gd=/usr/local --with-pgsql=/usr/local/pgsql \
        --enable-shmop --enable-sysvsem --enable-sysvshm \
        --without-mysql --with-jpeg-dir=/usr/local \
        --with-ttf-dir=/usr/local --with-openssl=/usr/local/ssl \
        --with-zlib --enable-bcmath
$
as the configure input, apache doesn't start
because it can't find php_syslog. 

Looking at the headers and code, I made the following
patch (works for me, may break other stuff.):

$ cat syslog.patch
Index: ext/standard/syslog.c
===================================================================
RCS file: /cvsroot/php/ext/standard/syslog.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -c -r1.1.1.2 -r1.2
*** ext/standard/syslog.c       2000/12/23 23:06:07     1.1.1.2
--- ext/standard/syslog.c       2000/12/23 23:58:12     1.2
***************
*** 252,258 ****
         * this will cause problems.
         */

!       php_syslog((*priority)->value.lval, "%.500s",(*message)->value.str.val);
        RETURN_TRUE;
  }
  /* }}} */
--- 252,258 ----
         * this will cause problems.
         */

!       syslog((*priority)->value.lval, "%.500s",(*message)->value.str.val);
        RETURN_TRUE;
  }
  /* }}} */
Index: main/php_syslog.h
===================================================================
RCS file: /cvsroot/php/main/php_syslog.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -c -r1.1.1.1 -r1.2
*** main/php_syslog.h   2000/12/23 23:06:20     1.1.1.1
--- main/php_syslog.h   2000/12/23 23:58:12     1.2
***************
*** 12,17 ****
--- 12,19 ----
   * defines syslog to std_syslog.
   */

+
+ #ifdef NOTDEF_LER
  #ifdef syslog

  #ifdef HAVE_STD_SYSLOG
***************
*** 21,29 ****
  #undef syslog

  #endif
!
  #ifndef php_syslog
  #define php_syslog syslog
  #endif

  #endif
--- 23,32 ----
  #undef syslog

  #endif
! #endif
  #ifndef php_syslog
  #define php_syslog syslog
  #endif
+

  #endif
$


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 22:15 UTC] sniper@php.net
Please try PHP 4.0.5. If this is still not fixed,
reopen this bug report.

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 13:00:01 2026 UTC