[PHP-DEV] Bug #14156 Updated: No TTF support in this PHP build

2001-11-27 Thread kuba

ID: 14156
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: GD related
Operating System: RH 7.2
PHP Version: 4.0.6
New Comment:

it works fine with
--with-freetype-dir=/usr/lib --enable-gd-native-ttf
and i got support for TTF, 

but then I got libgd was not built with TrueType 
so I had to make change in source code that was 
exlained in bug #12065

# if HAVE_LIBGD20  HAVE_LIBFREETYPE 
=
# HAVE_LIBFREETYPE


now I can use TTF functions

but, did someone make changes in the source code,
so people won't have to do it by themselves?

JF

Previous Comments:


[2001-11-21 12:51:59] [EMAIL PROTECTED]

Use --enable-gd-native-ttf or --enable-gd-native-tt (yes that's a typo) if the first 
doesn't work.



[2001-11-21 04:19:24] [EMAIL PROTECTED]

libgd-1.8.4
freetype-2.0.3-7
freetype-devel-2.0.3-7
freetype-utils-2.0.3-7

Although in big #9569 you've said that
GD extension only works with Freetype 1.x
Guys from gd are saying:
If you want to use the TrueType font support, you must 
also install the FreeType 2.x library, including the 
header files.

while configuring, I got this:
checking whether to enable truetype string function in 
gd... no
checking for freetype(2)... no



my config line:
./configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-shared --with-apxs=/usr/sbin/apxs 
--with-gd --with-jpeg-dir=/usr --with-png 
--with-ttf=/usr/lib --with-freetype=/usr/lib --with-zlib 
--enable-safe-mode --enable-track-vars --enable-ftp 
--with-mysql=/usr/local/mysql --with-dbase --with-gettext


script:
?php
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, 
/path/arial.ttf,
  Testing... Omega: #937;);
ImagePNG ($im);
?


error:
Warning: ImageTtfText: No TTF support in this PHP build






Edit this bug report at http://bugs.php.net/?id=14156edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12010 Updated: Unable to save result set in

2001-07-11 Thread kuba

ID: 12010
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Old Bug Type: unknown
Bug Type: MySQL related
Operating System: Linux new 2.2.16-storm #1
PHP Version: 4.0.6
New Comment:

sorry - submitted twice cause my browser's window closed when I tried submit first 
time
Nevermind

As I said  recompiled php with 
'--with-mysql=/usr/local/mysql'
and still got error Unable to save result set in...


according to bug report #11015
I've checked settings in php.ini, but
mysql.default_socket=/tmp/mysql.sock
is correct

however, mod_auth_mysql that I'm using required other socket, so I made link from 
mod_auth's socket localization
to /tmp/mysql.sock (then mod_auth started working correctly)


Previous Comments:


[2001-07-10 09:37:19] [EMAIL PROTECTED]

Submitted twice



[2001-07-10 09:35:44] [EMAIL PROTECTED]

mysql_query(INSERT INTO intranet (login,imie_nazwisko,haslo) VALUES 
('milewskij','','657998'));

 './configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=system' 
'--with-config-file-path=/etc/php4/apache' '--enable-calendar' '--without-dom' 
'--enable-filepro' '--enable-ftp' '--enable-sysvsem--enable-sysvshm' 
'--enable-track-vars' '--enable-trans-sid' '--disable-static' '--with-gd' '--with-mm' 
'--with-mysql=/usr/local/mysql' '--with-pcre-regex=/usr' '--enable-sockets' 
'--with-ttf' '--with-yp' '--with-zlib' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'


mysql_query only returns error with INSERT and DELETE (no problem with SELECT)


I tried to recompiled with path to mysql, as you've said in FAQ, but it didn't solve 
problem...


the same script with the same mySQL databases running on PHP 4.0.2, the same mySQL 
(the 3.23.39), on Redhat 7 returns no error

please help me ASAP


phpinfo: http://new.pharmag.pl/test.php
script with error: http://new.pharmag.pl/strony/run/konw_users.php?rodzaj=intranet






ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12010edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12009: MySQL: Unable to save result set in

2001-07-10 Thread kuba

From: [EMAIL PROTECTED]
Operating system: Linux new 2.2.16-storm #1 
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  MySQL: Unable to save result set in 

mysql_query(INSERT INTO intranet (login,imie_nazwisko,haslo) VALUES
('milewskij','','657998'));



'./configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=system' '--with-config-file-path=/etc/php4/apache'
'--enable-calendar' '--without-dom' '--enable-filepro' '--enable-ftp'
'--enable-sysvsem--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--disable-static' '--with-gd' '--with-mm'
'--with-mysql=/usr/local/mysql' '--with-pcre-regex=/usr' '--enable-sockets'
'--with-ttf' '--with-yp' '--with-zlib' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr'



it crashes on INSERT and DELETE query (not on SELECT)
I read FAQ and that recompiling with path to mySQL will solve the problem,
but it doesn't

the same script running on redhat 7 with PHP 4.0.2 and the same mySQL and
mod_auth_mysql returns no error

please help me as soon as you can

Jakub Formela


phpinfo: http://new.pharmag.pl
script with error
http://new.pharmag.pl/strony/run/konw_users.php?rodzaj=intranet
-- 
Edit bug report at: http://bugs.php.net/?id=12009edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12010: Unable to save result set in

2001-07-10 Thread kuba

From: [EMAIL PROTECTED]
Operating system: Linux new 2.2.16-storm #1 
PHP version:  4.0.6
PHP Bug Type: unknown
Bug description:  Unable to save result set in 

mysql_query(INSERT INTO intranet (login,imie_nazwisko,haslo) VALUES
('milewskij','','657998'));

 './configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=system' '--with-config-file-path=/etc/php4/apache'
'--enable-calendar' '--without-dom' '--enable-filepro' '--enable-ftp'
'--enable-sysvsem--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--disable-static' '--with-gd' '--with-mm'
'--with-mysql=/usr/local/mysql' '--with-pcre-regex=/usr' '--enable-sockets'
'--with-ttf' '--with-yp' '--with-zlib' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr'


mysql_query only returns error with INSERT and DELETE (no problem with
SELECT)


I tried to recompiled with path to mysql, as you've said in FAQ, but it
didn't solve problem...


the same script with the same mySQL databases running on PHP 4.0.2, the
same mySQL (the 3.23.39), on Redhat 7 returns no error

please help me ASAP


phpinfo: http://new.pharmag.pl/test.php
script with error:
http://new.pharmag.pl/strony/run/konw_users.php?rodzaj=intranet

-- 
Edit bug report at: http://bugs.php.net/?id=12010edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]