Bug #4119: Semaphores do not work (sem_get unsupported or undefined)

From: Date: Wed, 12 Apr 2000 22:14:47 +0000
Subject: Bug #4119: Semaphores do not work (sem_get unsupported or undefined)
Groups: php.dev 
Request: Send a blank email to php-dev+get-17848@lists.php.net to get a copy of this message
From: lew@persiankitty.com Operating system: FreeBSD 3.4-RELEASE PHP version: 3.0.16 PHP Bug Type: Misbehaving function Bug description: Semaphores do not work (sem_get unsupported or undefined) <?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

« previous php.dev (#17848) next »