php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4020 macro 'PHP3_MAX_SALT_LEN' miss-define error
Submitted: 2000-04-04 00:53 UTC Modified: 2000-05-13 06:55 UTC
From: york dot ye at china dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS (04/04/2000) OS: Redhat 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: york dot ye at china dot com
New email:
PHP Version: OS:

 

 [2000-04-04 00:53 UTC] york dot ye at china dot com
When I compile Apache 1.3.12 + php-4.0b4pl1 + OpenSSL + mod_ssl + MySQL on my Redhat6.1/intel-6x86:

.....

$ CFLAGS='-O2 -I/usr/local/ssl/include' \
      ./configure \
          --with-apache=../apache_1.3.12 \
          --with-mysql=/usr \
          --with-session \
          --enable-memory-limit=yes \
          --enable-track-vars 
          --with-config-file-path=/usr/local/lib/php.ini
$ gmake

then it will return such error message:
macro 'PHP3_MAX_SALT_LEN' not defined in file 'ext\standard\crypt.c'

I checked the file, see may PHP3_STD_DES_CRYPT, PHP3_EXT_DES_CRYPT, PHP3_MD5_CRYPT, PHP3_BLOWFISH_CRYPT are all FALSE,
so I add these code:

#ifndef PHP3_MAX_SALT_LEN
#define PHP3_MAX_SALT_LEN 17
#endif

then the compile passed. but we know it was NOT the official's solve...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-13 06:55 UTC] sas at cvs dot php dot net
If you are indeed referring to PHP 4.0 as ext/standard/crypt.c suggests, then you should not see this problem anymore. If you are seeing this problem in PHP 3.0, please reopen the bug report. Thanks.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 06:00:01 2026 UTC