php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4119 Semaphores do not work (sem_get unsupported or undefined)
Submitted: 2000-04-12 18:14 UTC Modified: 2000-04-12 18:41 UTC
From: lew at persiankitty dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.16 OS: FreeBSD 3.4-RELEASE
Private report: No CVE-ID: None
 [2000-04-12 18:14 UTC] lew at persiankitty dot com
<?php
//  Define some constants
$lock_key = 1929;
//  Fetch the descriptor for our lock semaphore
$lockfd = sem_get( $lock_key );
echo "lockfd = $lockfd\n";
?>

pkal# php -q index.html
<br>
<b>Fatal error</b>:  Call to unsupported or undefined function sem_get() in <b>
index.html</b> on line <b>6</b><br>


-- Yes, I do have SYSV stuff enabled in my kernel:
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores

Shell access can be made available if it helps the team track this one down.

Regards,
Lew Payne

Configuration:

./configure \
  --with-config-file-path=/usr/local/lib \
  --with-system-regex=yes \
  --with-gdbm=/usr/local \
  --with-gd=/usr/local \
  --with-mysql \
  --enable-debug=no \
  --enable-track-vars=yes \
  --enable-short-tags=no
make; make install; make clean
--- move over the ini file and edit it ---
cp php3.ini-dist /usr/local/lib/php3.ini
vi /usr/local/lib/php3.ini
mysql.allow_persistent  =       Off


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-12 18:41 UTC] rasmus at cvs dot php dot net
Compile PHP with:
  --enable-sysvsem        Enable System V semaphore support.
  --enable-sysvshm        Enable the System V shared memory support
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 20:00:02 2026 UTC