Re: [PHP-DEV] Bug #10774: SWF complill error

2001-05-10 Thread Sterling Hughes

On Thu, 10 May 2001, Jani Taskinen wrote:


 Ok. Any ideas how to not force them because that is evil
 but softly suggest them to not use libswf but ming instead?

 Warning into configure? A note about it being deprecated into
 configure help?


I'd say a manual note and a message for the output of

./configure --help

Would be enough at this point.

-Sterling



 --Jani


 On Wed, 9 May 2001, Sterling Hughes wrote:

 On Thu, 10 May 2001, Jani Taskinen wrote:
 
 
  Sterling? Time to nuke swf extension?
  That site of libswf has been updated last time 1999..?
 
  --Jani
 
 
 No...  Many people (surprisingly :) still use and rely on the libswf
 extension.  I've still had (within the last month or two) like 40
 messages about it for some information or reports, etc.  That, to me,
 is amazing, considering that's more than I get for cURL and Sablotron
 combined.  It seems even though the library is dead, people still use the
 extension.
 
 -Sterling
 
 
  On 10 May 2001 [EMAIL PROTECTED] wrote:
 
  From: [EMAIL PROTECTED]
  Operating system: Red Hat Linux 6.2
  PHP version:  4.0.4pl1
  PHP Bug Type: SWF related
  Bug description:  SWF complill error
  
  I have attempted to compille php 4.0.4pl1 and 4.0.5 using files that I 
downloaded from http://reality.sgi.com/grafica/flash/; and with the follwing 
cofigure lines --with-swf-/usr/local/dist/bin
  my problem is that the swf.h and libswf.a file are not included in the download 
available from the above location. I have also tried using the the swf.h file 
available from the above site but I recieve coinfigure errors stating: swf should be 
in directory /include and libswf.a should be in directory /lib.
  
  All of the files do not come with the downloaded file, the text file that I 
copied from the site still gives me errors and the documentation from the above site 
is very poor. Can you please tell me in plain english how to configure PHP with 
FLASH/SHOCKWAVE features.
  
  Eric
  
  
  
 
 
 
 
 
 





-- 
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]




Re: AW: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-10 Thread Jani Taskinen

On Wed, 9 May 2001, Sterling Hughes wrote:

On Thu, 10 May 2001, Jani Taskinen wrote:
 This is just because some developers don't like to follow the guidelines.
 As, I quote, it woulnd't be fun anymore or you can't force anyone.

Hrrmmm.. Which guidelines would those be?  And no, you can't force anyone,

This one.. (from CODING_STANDARDS):

8---
Naming Conventions
--

[1] Function names for user-level functions should be enclosed with in
the PHP_FUNCTION() macro. They should be in lowercase, with words
8---

And yes, you can force anyone. If they don't follow the guidelines set,
their CVS access can as easily be taken from them as it was given..
This is same as if someone intentionally breaks some parts of the code.

if you see something you don't like however, your welcome to change it,
and if its generally a good change, then it will be included in the code.

So..you think that if you are lazy and don't wanna follow these loose
guidelines a bit and use your own intendation and naming convention
someone else has to come after and clean up your mess?! Yeah, right.

This isn't like at your home where your mom cleans up your room.
Here you really have to do it yourself. :-p

I've gone ahead and changed them all to lower case...  If its a bad change
I'm expecting people to bitch.

Anyone good with regexps could create a script which could be used
to at least find these..or even convert them to lower case ?

 another question: according to the CODING_STANDARDS file every function
 should be lowercase, but how about exported classes ? is there a guidline
 for this ?

 See above.


There is no standard in the CODING_STANDARDS file.

So why does it even exist?

--Jani



-- 
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 #10776: Externally set LDFLAGS not exported by configure

2001-05-10 Thread d . begley

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.5
PHP Bug Type: Compile Problem
Bug description:  Externally set LDFLAGS not exported by configure

If you set CC, CFLAGS and LDFLAGS prior to running configure,
CC and CFLAGS will be used by and exported through configure
such that it works for the remainder of the build - but
LDFLAGS is only used by configure (then ignored, not exported
to the remaining build scripts).

This causes some runtime paths and libraries to be missing
from the resultant PHP binary, leading to execution failure.



-- 
Edit Bug report at: http://bugs.php.net/?id=10776edit=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]




Re: AW: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-10 Thread Sterling Hughes

On Thu, 10 May 2001, Jani Taskinen wrote:

 On Wed, 9 May 2001, Sterling Hughes wrote:

 On Thu, 10 May 2001, Jani Taskinen wrote:
  This is just because some developers don't like to follow the guidelines.
  As, I quote, it woulnd't be fun anymore or you can't force anyone.
 
 Hrrmmm.. Which guidelines would those be?  And no, you can't force anyone,

 This one.. (from CODING_STANDARDS):

 8---
 Naming Conventions
 --

 [1] Function names for user-level functions should be enclosed with in
 the PHP_FUNCTION() macro. They should be in lowercase, with words
 8---

 And yes, you can force anyone. If they don't follow the guidelines set,
 their CVS access can as easily be taken from them as it was given..
 This is same as if someone intentionally breaks some parts of the code.


How is this helpful?  By removing CVS access your taking one person away
who could possibly solve the problem.  And your still not forcing them to
do anything.  If I was a new developer and someone removed my CVS access
because I goofed up, or my code didn't conform to the CODING_STANDARDS
file, I would most likely not contribute again, and would not be happy
with the PHP development team.  If we send people away its usually not
their loss, but rather ours (exceptions can be made for a few people,
*cough* Jon Ribbens *cough* ;)

 if you see something you don't like however, your welcome to change it,
 and if its generally a good change, then it will be included in the code.

 So..you think that if you are lazy and don't wanna follow these loose
 guidelines a bit and use your own intendation and naming convention
 someone else has to come after and clean up your mess?! Yeah, right.


If someone has a problem with the way I or someone else codes, they're
more than welcome to fix it themselves.  While in a perfect world all
files and pieces of work would fit into PHP perfectly, that isn't so.
There's no reason to look down upon good pieces of code, because the
identation doesn't match the PHP standard, or they don't name things
according to the standard.  If its really that big a problem, ask the
developer to fix it, and if they don't want too, fix it yourself (I mean
yourself in the general sense), or leave it alone.

 This isn't like at your home where your mom cleans up your room.
 Here you really have to do it yourself. :-p


That was only in Italy :)  And damn that was great, I got three fresh
cooked meals a day too, as well as all my laundry done, a, but I
digress.

 I've gone ahead and changed them all to lower case...  If its a bad change
 I'm expecting people to bitch.

 Anyone good with regexps could create a script which could be used
 to at least find these..or even convert them to lower case ?


I think the com extension was the last remnants, grep could easily
handle this...

  another question: according to the CODING_STANDARDS file every function
  should be lowercase, but how about exported classes ? is there a guidline
  for this ?
 
  See above.
 
 
 There is no standard in the CODING_STANDARDS file.

 So why does it even exist?


Maybe you mis-understood me.   I mean there is no written standard for the
naming of classes in the CODING_STANDARDS file, not that the
CODING_STANDARDS file is not to be followed (or changed if a part of it is
objectionable ;)

-Sterling


-- 
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 #10777: Missing libraries for Netscape LDAP SDK

2001-05-10 Thread d . begley

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.5
PHP Bug Type: LDAP related
Bug description:  Missing libraries for Netscape LDAP SDK

ext/ldap/config.m4 looks for and adds the library required
for the Netscape LDAP SDK (such as ldapssl41);  the script
also includes the runtime path for the LDAP library.

Unfortunately, in the case of SDK 4.1 (ldapssl41) the
associated libraries (nspr3, plc3 and plds3) are NOT linked.

If you run ldd against the resultant PHP binary, the
compile-time linker has already discovered this dependency
and added the missing libraries - but because they were not
explicitly linked the runtime path is missing so the
libraries are not found when PHP executes.

The fix is to also explicitly link the missing three
libraries (in addition to ldapssl41).




-- 
Edit Bug report at: http://bugs.php.net/?id=10777edit=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 #10778: ext/pdf does not work with pdflib 4.0

2001-05-10 Thread d . begley

From: [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:  4.0.5
PHP Bug Type: PDF related
Bug description:  ext/pdf does not work with pdflib 4.0

ext/pdf is written to detect and work with pdflib 3.x;
unfortunately it is pdflib 4.x that is available for
download from the pdflib Web site - leading to PHP failing
to compile/link with pdflib.

The fix is simple enough (it'd be nice if this was to be
incorporated directly into PHP as standard for those
systems whereby installing autoconf isn't really necessary);
simply replace the ext/pdf contents of PHP with that supplied
by pdflib 4.0, then rebuild configure.




-- 
Edit Bug report at: http://bugs.php.net/?id=10778edit=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] °·¨­¤¤¤ß¡I°ê»Ú«~½è«OÃÒ¡I¡I

2001-05-10 Thread xqwv2_nwx2y


   ¼y¯¬   ¥@¶T°ê»Ú´LºaÀ]   ¬J±N²{¨­

¥þ¥x­º®y¡A¦û¦a2000©W¡AµØ¯Ç«Â¨q®Ç¡K..
§Y¤é°_¦Ü90¦~5¤ë15¤é¤î  ¤Z¤J¡y¨È¤O¤s¤j¡z·|­ûªÌ

­­®ÉÀu´f   45 §é ¹ÎÅéÀu´f®×
¤­¦~·|Äy ¯S»ù $ 18,000 ¤¸  (­ì»ù $ 40,000¤¸)   
   

1.  ¥þ°ê°ß¤@³q¹LIS9002°ê»Ú«~½è«OÃÒ¤§°·¨­¤¤¤ß¡C
2.  ¥þ°ê³Ì¤j¡A¥þ¬Ù¤À³¡20®a¥H¤W¡C
3.  ¥þ°ê­º³Ð¡A¤@¥d³q¦æ¥þ¬Ù¦U¤À³¡¡A¤£­­¦¸¼Æ¨Ï¥Î¡C
4.  ·|­û¨î«×³Ì¶W­È¡A·|­û¥d¨Ï¥Î´Á­­ªø¹F60­Ó¤ë¡C
5.  »ù¿ú³Ì¤½¹D¡A¨C¤ë¤ë¶O¥u»Ý  10 0 0  ¤¸¡C

¡i¤À ³¡ ¤¶ ²Ð ¡j
¥x¥_¡G©¾§µ¡B«H¸q¡B¤jª½¡B«n´ä¡B¥Ã©M¡B·s²ø¡B¤º´ò¡B¤¤¤s¡B«°¤¤¡B
¤½À]¡B¤T­«¡B´°«n¡BªO¾ô ¡B¯¸«e¤j¨È  ¥@¶TºXÄ¥©±(ªñ´Á¶}¹õ)¡B
¥x¤¤¡G¤å¤ß¡B¤¤´ä  ¥x«n¡G°ª¶¯¡G:
   

¡i³] ³Æ ¤¶ ²Ð ¡j
«Ç¤º±Ä¥ú·Å¤ô´åªa¦À / ±M·~Ãý«ß¦Ñ®v¡B¦³®ñ½Òµ{ / ­¸½ü¦³®ñ±Ð«Ç 
/«Ç¤º°j¤O²y³õ  /¨k¤kSPA¤T·Å·x -- ¯N½c / »]®ð«Ç 
/¶W­µªi«ö¼¯§N¼ö¦À/ ¤ôÀø¦À / ¼²²y°Ï / ®à²y°Ï / 
°·¨­©Ð -- ­«¶q°V½m°Ï / ¹B°Ê¥Í²zµû¦ô / ¤ßªÍ¥\¯à°Ï / ¨àµ£®T¼Ö«Ç




 ±M®×¸g¿ì : ³¯ «a ¦t   ¦æ°Ê¹q¸Ü¡G0936-588-338   
¡· ­Ñ¼Ö³¡±Ä·|­û¨ê¥d¤J³õ¡A±ý°ÑÆ[ªÌ½Ð¥ý¨Ó¹q¹w¬ù ¡·



-- 
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 #9334 Updated: Oracle8 connect by ODBC

2001-05-10 Thread lewandowski-d

ID: 9334
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: ODBC related
Operating system: Win 98/NT
PHP Version: 4.0.4
Description: Oracle8 connect by ODBC

Ok , so I wrote whole script below and all error mesages:

SCRIPT:
?
$lacze = odbc_connect(LIVE,ter515,ter515);

$query = SELECT ITEM FROM LIVE.WO
  where WO_NUM='200504A00667' and WO_LINE='0001'
 ;

$result = odbc_exec($lacze, $query);
$item=odbc_result($result,1);
Echo(Item: $item);
?



RESULT (PHP 4.0.4):

Warning: SQL error: [Oracle][ODBC][Ora]ORA-12154: TNS:nie mo¿na wyliczyæ nazwy us³ugi 
, SQL state 08004 in SQLConnect in c:\program files\apache 
group\apache\htdocs\temp\test.php4 on line 2

Warning: Supplied argument is not a valid ODBC-Link resource in c:\program 
files\apache group\apache\htdocs\temp\test.php4 on line 8

Warning: Supplied argument is not a valid ODBC result resource in c:\program 
files\apache group\apache\htdocs\temp\test.php4 on line 9
Item: 

RESULT (PHP 3.0.17):

Item: LA 6000-RSC


Previous Comments:
---

[2001-05-08 08:39:23] [EMAIL PROTECTED]
the statement because odbc_connect doesn't work does not help.  what doesn't work 
about it?  what error are you receiving?  does it connect but mark $aa as invalid, 
empty, or 0?  

can you please provide a full simple script to simulate the problem?  your sample 
below is missing declarations for the following variables:
Dsn_name
user
password



---

[2001-05-08 04:32:33] [EMAIL PROTECTED]
With PHP 4.0.5 is the same situation

My script: f.e

?
$aa=odbc_connect(Dns_name,user,password);
?

becouse odbc_connect doesn't work


My php.ini :

[PHP]


; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the ? tag.  otherwise, only ?php and 
script tags are recognized.
asp_tags=   Off ; allow ASP-style % % tags
precision   =   14  ; number of significant digits displayed in 
floating point numbers
y2k_compliance  =   Off ; whether to be year 2000 compliant (will cause 
problems with non y2k compliant browsers)
output_buffering= Off   ; Output buffering allows you to send header lines 
(including cookies)
; even after you send body 
content, in the price of slowing PHP's
; output layer a bit.
; You can enable output 
buffering by in runtime by calling the output
; buffering functions, or 
enable output buffering for all files
; by setting this directive to 
On.
output_handler  =   ; You can redirect all of the output of your 
scripts to a function,
; that can be responsible to 
process or log it.  For example,
; if you set the 
output_handler to ob_gzhandler, than output
; will be transparently 
compressed for browsers that support gzip or
; deflate encoding.  Setting 
an output handler automatically turns on
; output buffering.
implicit_flush  = Off   ; Implicit flush tells PHP to tell the output layer to 
flush itself
; automatically after every 
output block.  This is equivalent to
; calling the PHP function 
flush() after each and every call to print()
; or echo() and each and every 
HTML block.
; Turning this option on has 
serious performance implications, and
; is generally recommended for 
debugging purposes only.
allow_call_time_pass_reference  = On; whether to enable the ability to force 
arguments to be 
; 
passed by reference at function-call time.  This method
; is 
deprecated, and is likely to be unsupported in future
; 
versions of PHP/Zend.  The encouraged method of specifying
 

[PHP-DEV] Bug #10751 Updated: When ever I submit the japanese sjis charset string ƒ\ƒtƒgƒEƒFƒA from the client

2001-05-10 Thread umesh

ID: 10751
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Red Hat Linux 6.2
PHP Version: 4.0.5
Description: When ever I submit the japanese sjis charset string ƒ\ƒtƒgƒEƒFƒA from the 
client

When ever I submit the japanese sjis charset string 
ƒ\ƒtƒgƒEƒFƒA from the client side, a backslash is introduced into the string like this
ƒ\\ƒtƒgƒEƒFƒA at the server side.

Please let me know the solution if anybody knows it. Do I need to make a server 
setting in
the php.ini file or is it s bug in PHP scripting engine ?

Please let me know ASAP. this is an very very urgent call. It is a SOS call from me.

Thanx
Umesh



Previous Comments:
---

[2001-05-09 09:55:28] [EMAIL PROTECTED]
When ever I submit the japanese sjis charset string 
ƒƒtƒgƒEƒFƒA from the client side, a backslash is introduced into the string like this 
ƒ\ƒtƒgƒEƒFƒA at the server side.

Please let me know the solution if anybody knows it. Do I need to make a server 
setting in the php.ini file or is it s bug in PHP scripting engine ?

Please let me know ASAP. this is an very very urgent call. It is a SOS call from me.

Thanx
Umesh


---


Full Bug description available at: http://bugs.php.net/?id=10751


-- 
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 #10765 Updated: timeout doesn't work

2001-05-10 Thread sniper

ID: 10765
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Sockets related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Add some short script which demonstrates how they don't work.

--Jani


Previous Comments:
---

[2001-05-09 16:43:46] [EMAIL PROTECTED]
timeout parameter in fsockopen() doesn't work
socket_set_timeout() doesn't work.

I am using PHP 4.0.5 (binary release, CGI version) in Windows 98.

---



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


-- 
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]




Re: [PHP-DEV] Bug #10774: SWF complill error

2001-05-10 Thread Jani Taskinen

On Wed, 9 May 2001, Sterling Hughes wrote:

On Thu, 10 May 2001, Jani Taskinen wrote:


 Ok. Any ideas how to not force them because that is evil
 but softly suggest them to not use libswf but ming instead?

 Warning into configure? A note about it being deprecated into
 configure help?


I'd say a manual note and a message for the output of

./configure --help

Would be enough at this point.


Yeah. Do it.

--Jani


-- 
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 #10639 Updated: include() require()

2001-05-10 Thread sniper

ID: 10639
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Does it print out any errors? Is your error level
set to E_ALL in php.ini?

--Jani


Previous Comments:
---

[2001-05-07 10:00:28] [EMAIL PROTECTED]
Here is a sample script:

--- test.php 
?php
include(test.inc);
?
-

--- test.inc 
html
head
titletest/title
/head
body
pthis is a test/p
/body
/html
-

Normaly you will see on http://www.mydomain.com/test.php the content of the file 
test.inc as standard HTML page. On your PHP implementation the page test.php will not 
be found.

Stephan


---

[2001-05-04 15:33:22] [EMAIL PROTECTED]
Please add some short example scripts into this bug report.
Which explains what you're trying to do.

--Jani

---

[2001-05-03 13:08:14] [EMAIL PROTECTED]
On AIX 4.3.3(ML6) with PHP and Apache from IBM's Linux Toolbox the functions include() 
and require() don't work correctly. If these functions are used, a page not found 
error occures.


---



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


-- 
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 #10575 Updated: installation of 4.0.5 as apxs module broke xbithack apache option

2001-05-10 Thread sniper

ID: 10575
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Apache related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Did it work with 4.0.4pl1?

--Jani


Previous Comments:
---

[2001-05-01 06:59:48] [EMAIL PROTECTED]
installation of 4.0.5 as apxs module broke xbithack apache 
option



---



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


-- 
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 #10720 Updated: Error Parsing Browscap.ini

2001-05-10 Thread sniper

ID: 10720
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

There are no browscap.ini files bundled with PHP.

--Jani


Previous Comments:
---

[2001-05-07 21:08:51] [EMAIL PROTECTED]
When I modify my php.ini file and point the browscap configuration setting to the 
browscap.ini provided with PHP (under c:phpbrowscapbrowscap.ini) I get the following 
error at the end of every php page:

PHP: Error parsing c:phpbrowscapbrowscap.ini on line 8206 

If I use the default browscap.ini installed by Windows itself, the error does not 
happen.

---



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


-- 
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 #10764 Updated: set_time_limit doesn't work

2001-05-10 Thread sniper

ID: 10764
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Function Specific
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Check this bug report for good explanation why this
can't work:

http://www.php.net/bugs.php?id=8414edit=1



Previous Comments:
---

[2001-05-09 16:01:15] [EMAIL PROTECTED]
Set_time_limit() is completely ignored. All php.ini-values are on default (especially 
safe mode is off). For example, execution of the following test-script never stops:

set_time_limit(10);

while(true) {
echo sleeping...brn;
flush();
sleep(1);
}

This bug has already been descriped in http://www.php.net/bugs.php?id=5518 but the fix 
provided by Rasmus doesn't seem to work (any longer).

conf-line: './configure' '--with-apache=/home/maverick/src/lamp/apache_1.3.19' 
'--with-mysql=/usr/mysql' '--with-zlib-dir=/usr/lib' '--with-ftp' '--with-gd' 
'--with-jpeg-dir=/usr/local/lib' '--enable-versioning' '--enable-track-vars=yes' 
'--enable-url-includes' '--enable-sysvshm=yes' '--enable-sysvsem=yes' 
'--with-config-file-path=/etc' '--enable-sockets' '--with-mcrypt' '--with-openssl' 
'--with-xpm-dir=/usr/X11R6/lib'

Daniel Fuehrer

---



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


-- 
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 #10738 Updated: socket functions cause php4 to segmentation fault

2001-05-10 Thread sniper

ID: 10738
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sockets related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

This should be fixed in CVS. Please try the latest snapshot
from http://snaps.php.net/

Reopen it still segfaults.

--Jani


Previous Comments:
---

[2001-05-09 00:42:42] [EMAIL PROTECTED]
Ok, I think the problem was I was strip'ing the binary before moving it around.  Try 
this:

gdb ./php core 
GNU gdb 19981224
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as sparc-sun-solaris2.7...

warning: core file may not match specified executable file.
Core was generated by `./php ./mysocket.cgi'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/local/lib/libpng.so.2...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/local/lib/libucb.so.1...done.
Reading symbols from /usr/lib/libelf.so.1...done.
Reading symbols from /usr/lib/libgen.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
#0  0xff0b6dec in strlen ()
(gdb) bt
#0  0xff0b6dec in strlen ()
#1  0x797a4 in php_if_strerror (ht=1, return_value=0x246618, this_ptr=0x0, 
return_value_used=1) at sockets.c:1097
#2  0x17c704 in execute ()
#3  0x11d7c0 in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#4  0x36414 in php_execute_script (primary_file=0xffbefc58) at main.c:1209
#5  0x32c48 in main (argc=2, argv=0xffbefcfc) at cgi_main.c:730


---

[2001-05-08 16:34:49] [EMAIL PROTECTED]
I think the '--enable-debug' didn't get accounted for. 
Please try deleting config.cache and reconfigure/compile PHP again.

Then generate that gdb bactrace. Hopefully it will have more info in it.

--Jani


---

[2001-05-08 15:57:51] [EMAIL PROTECTED]
I recently wanted to do socket based options with PHP4, so I downloaded PHP 4.0.5, 
compiled it fine.  However when I attempted to run the Ex2 Socket Example: Simple 
TCP/IP client located at http://www.php.net/manual/en/ref.sockets.php  PHP 4 core 
dumped:

./mysocket.cgi
X-Powered-By: PHP/4.0.5
Content-type: text/html


h2TCP/IP Connection/h2
l core  
Segmentation fault (core dumped)

I recompiled PHP4 with the --enable-debug ('./configure' 
'--with-mysql=/usr/local/mysql' '--with-gd' '--with-zlib' '--with-png' '--with-xml' 
'--enable-ftp' '--enable-sockets' '--enable-discard-path' '--enable-debug') and 
analyzed the core:

gdb /home/usr/bin/php4 core 
GNU gdb 19981224
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as sparc-sun-solaris2.7...(no debugging symbols found)...

warning: core file may not match specified executable file.
Core was generated by `/home/usr/bin/php4 ./mysocket.cgi'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libpam.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpng.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libresolv.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libm.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcrypt_i.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libucb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libelf.so.1...(no debugging symbols 

[PHP-DEV] Bug #10747 Updated: buildconf fails with missing macros

2001-05-10 Thread sniper

ID: 10747
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0 Latest CVS (2001-05-09)
Assigned To: 
Comments:

Should be fixed now.


Previous Comments:
---

[2001-05-09 07:34:19] [EMAIL PROTECTED]
root@Tenchi /usr/src/php4# ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
rebuilding configure
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_ADD_INCLUDE
***BUG in Autoconf--please report*** AC_ADD_LIBRARY_WITH_PATH
rebuilding acconfig.h
rebuilding main/php_config.h.in

my autoconf is the one from ftp.gnu.org

---



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


-- 
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 #10779: error in configure script (oracle release checks)

2001-05-10 Thread christoph . hofstetter

From: [EMAIL PROTECTED]
Operating system: aix 4.3.3
PHP version:  4.0.5
PHP Bug Type: *Install and Config
Bug description:  error in configure script (oracle release checks)

the configure script contains an error where it checks the oracle release for 
oracle_ORACLE support, around line 30756:

it sets variable OCI8_VERSION instead of ORACLE_VERSION



  if test -s $ORACLE_DIR/orainst/unix.rgs; then
ORACLE_VERSION=`grep 'ocommon' $ORACLE_DIR/orainst/unix.rgs | sed 's/  
*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z $ORACLE_VERSION  ORACLE_VERSION=7.3
  elif test -f $ORACLE_DIR/lib/libclntsh.s?.8.0; then
ORACLE_VERSION=8.1
  elif test -f $ORACLE_DIR/lib/libclntsh.s?.1.0; then
ORACLE_VERSION=8.0
  elif test -f $OCI8_DIR/lib/libclntsh.a; then
if test -f $OCI8_DIR/lib/libcore4.a; then
  OCI8_VERSION=8.0  -- should be ORACLE_VERSION!!!
else
  OCI8_VERSION=8.1  -- should be ORACLE_VERSION!!!
fi
  else
{ echo configure: error: Oracle needed libraries not found 12; exit 1; }
  fi
  echo $ac_t$ORACLE_VERSION 16



-- 
Edit Bug report at: http://bugs.php.net/?id=10779edit=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 #10748 Updated: LIBGD20 must be enabled manually in main/php_config.h

2001-05-10 Thread sniper

ID: 10748
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Configuration Issues
Operating system: 
PHP Version: 4.0 Latest CVS (2001-05-09)
Assigned To: 
Comments:

Can you try the latest CVS again?
I have changed the configure script a lot..

--Jani


Previous Comments:
---

[2001-05-09 12:05:26] [EMAIL PROTECTED]
./configure 
  --prefix=/usr 
  --with-apxs=/usr/sbin/apxs 
  --with-config-file-path=/etc/httpd 
  --with-regex=system 
  --with-exec-dir=/usr/bin 
  --enable-safe-mode 
  --enable-debugger 
  --enable-magic-quotes 
  --enable-track-vars 
  --enable-memory-limit 
  --enable-ftp 
  --disable-debug 
  --disable-rpath 
  --with-bz2 
  --with-zlib=/usr 
  --with-gmp 
  --with-imap=shared,/usr 
  --with-ldap=shared,/usr 
  --with-mysql=shared,/usr 
  --with-pgsql=shared,/usr 
  --with-openssl=shared,/usr 
  --with-gd=shared,/usr 
  --with-jpeg-dir=/usr 
  --with-png-dir=/usr 
  --with-freetype-dir=/usr/local

I haven't got my config.log at the moment, as I updated to
newest CVS, and that failed while running buildconf...

---

[2001-05-09 08:29:04] [EMAIL PROTECTED]
It works for me...
Can you post your configure line and email your config.log file to [EMAIL PROTECTED] so that 
I can check into it?

--Wez.

---

[2001-05-09 07:44:25] [EMAIL PROTECTED]
the configure script doesn't detect libgd2 automatically

it is neccessary to put this in manually
#define HAVE_LIBGD20 1

---



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


-- 
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 #10779 Updated: error in configure script (oracle release checks)

2001-05-10 Thread sniper

ID: 10779
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Install and Config
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Fixed in CVS now.

--Jani


Previous Comments:
---

[2001-05-10 05:23:31] [EMAIL PROTECTED]
the configure script contains an error where it checks the oracle release for 
oracle_ORACLE support, around line 30756:

it sets variable OCI8_VERSION instead of ORACLE_VERSION



  if test -s $ORACLE_DIR/orainst/unix.rgs; then
ORACLE_VERSION=`grep 'ocommon' $ORACLE_DIR/orainst/unix.rgs | sed 's/  
*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z $ORACLE_VERSION  ORACLE_VERSION=7.3
  elif test -f $ORACLE_DIR/lib/libclntsh.s?.8.0; then
ORACLE_VERSION=8.1
  elif test -f $ORACLE_DIR/lib/libclntsh.s?.1.0; then
ORACLE_VERSION=8.0
  elif test -f $OCI8_DIR/lib/libclntsh.a; then
if test -f $OCI8_DIR/lib/libcore4.a; then
  OCI8_VERSION=8.0  -- should be ORACLE_VERSION!!!
else
  OCI8_VERSION=8.1  -- should be ORACLE_VERSION!!!
fi
  else
{ echo configure: error: Oracle needed libraries not found 12; exit 1; }
  fi
  echo $ac_t$ORACLE_VERSION 16


---



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


-- 
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 #10639 Updated: include() require()

2001-05-10 Thread sb

ID: 10639
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: AIX 4.3.3
PHP Version: 4.0.4pl1
Description: include()  require()

The binaries from IBM does not contain a php.ini file. In phpinfo() there is no value 
set to E_ALL.

Previous Comments:
---

[2001-05-10 05:00:46] [EMAIL PROTECTED]
Does it print out any errors? Is your error level
set to E_ALL in php.ini?

--Jani


---

[2001-05-07 10:00:28] [EMAIL PROTECTED]
Here is a sample script:

--- test.php 
?php
include(test.inc);
?
-

--- test.inc 
html
head
titletest/title
/head
body
pthis is a test/p
/body
/html
-

Normaly you will see on http://www.mydomain.com/test.php the content of the file 
test.inc as standard HTML page. On your PHP implementation the page test.php will not 
be found.

Stephan


---

[2001-05-04 15:33:22] [EMAIL PROTECTED]
Please add some short example scripts into this bug report.
Which explains what you're trying to do.

--Jani

---

[2001-05-03 13:08:14] [EMAIL PROTECTED]
On AIX 4.3.3(ML6) with PHP and Apache from IBM's Linux Toolbox the functions include() 
and require() don't work correctly. If these functions are used, a page not found 
error occures.


---


Full Bug description available at: http://bugs.php.net/?id=10639


-- 
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 #10782: Want to compile my PHP script into dll ext.

2001-05-10 Thread a_ratz

From: [EMAIL PROTECTED]
Operating system: windows 98\' SE
PHP version:  4.0.5
PHP Bug Type: Compile Problem
Bug description:  Want to compile my PHP script into dll ext.

How can I compile my PHP script into DLL extension 
and use that like others dll extensions from the
standard PHP distribution.


-- 
Edit Bug report at: http://bugs.php.net/?id=10782edit=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 #10781 Updated:

2001-05-10 Thread sniper

ID: 10781
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:



Previous Comments:
---

[2001-05-10 05:37:21] [EMAIL PROTECTED]


---



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


-- 
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 #10780 Updated: apache segmentation fault with libphp4.so

2001-05-10 Thread sniper

ID: 10780
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Apache related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Could you please generate a GDB backtrace?
First reconfigure with --enable-debug of course.

rm config.cache
./configure .. your options + --enable-debug
make clean
make 
make install


and then try generating the backtrace.

--Jani


Previous Comments:
---

[2001-05-10 05:34:27] [EMAIL PROTECTED]
when I try to restart Apache after installing PHP4_mod (libphp4.so), it dies:

/usr/local/apache/bin/apachectl[124]: 61546 Segmentation fault(coredump)


configure was run as follows:

./configure --with-oracle   
--with-apxs=/usr/local/apache/bin/apxs  
--with-oci8 
--enable-discard-path   
--without-mysql 
--enable-track-vars 


I tried this with Oracle 8.1.7 and 8.1.6, and also with PHP 4.0.4, same result.

do I do something wrong? 

---



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


-- 
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 #10782 Updated: Want to compile my PHP script into dll ext.

2001-05-10 Thread sniper

ID: 10782
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

You can't.

--Jani


Previous Comments:
---

[2001-05-10 05:39:19] [EMAIL PROTECTED]
How can I compile my PHP script into DLL extension 
and use that like others dll extensions from the
standard PHP distribution.

---



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


-- 
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 #10639 Updated: include() require()

2001-05-10 Thread sniper

ID: 10639
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

So does that same script work if you comment out the 
include part? And add some echo sometext there?

--Jani


Previous Comments:
---

[2001-05-10 05:37:37] [EMAIL PROTECTED]
There is no php-error visible. My browser (IE 5.5) says that the page can not be found.

---

[2001-05-10 05:34:17] [EMAIL PROTECTED]
The binaries from IBM does not contain a php.ini file. In phpinfo() there is no value 
set to E_ALL.

---

[2001-05-10 05:00:46] [EMAIL PROTECTED]
Does it print out any errors? Is your error level
set to E_ALL in php.ini?

--Jani


---

[2001-05-07 10:00:28] [EMAIL PROTECTED]
Here is a sample script:

--- test.php 
?php
include(test.inc);
?
-

--- test.inc 
html
head
titletest/title
/head
body
pthis is a test/p
/body
/html
-

Normaly you will see on http://www.mydomain.com/test.php the content of the file 
test.inc as standard HTML page. On your PHP implementation the page test.php will not 
be found.

Stephan


---

[2001-05-04 15:33:22] [EMAIL PROTECTED]
Please add some short example scripts into this bug report.
Which explains what you're trying to do.

--Jani

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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] merge expat 1.95.1 now or wait till branch?

2001-05-10 Thread Thies C. Arntzen


hi, 

i finally managed to find some time to bump the bundled expat
to the latest/greatest version. should i go ahead and commit
or wait till we branched 4.0.6?

tc


-- 
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 #10285 Updated: When using php,the cpu is in 100% status!

2001-05-10 Thread sniper

ID: 10285
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Performance problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no feedback. closed.


Previous Comments:
---

[2001-04-11 07:50:10] [EMAIL PROTECTED]
Please provide more information, IE does this only happen whith certain scripts? does 
it happen with ISAPI or CGI what webserver are you running? does it happen when you 
connect to SQL Server? Does it happen with earlier versions of php? We are not psycic 
you know!

- James

---

[2001-04-11 07:09:45] [EMAIL PROTECTED]
the Database in SQL Server 2000 and,when using php4.04pl1,
the cpu usage is always in 100% status!


---



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


-- 
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 #10280 Updated: mcrypt 2.4.4+ fails

2001-05-10 Thread sniper

ID: 10280
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: mcrypt related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback, closed.

--Jani


Previous Comments:
---

[2001-04-11 02:32:04] [EMAIL PROTECTED]
Does this error still occur now? Or wasn't it a bug after all?

---

[2001-04-11 02:25:16] [EMAIL PROTECTED]
Did not actually fix bug. 

---

[2001-04-11 02:14:09] [EMAIL PROTECTED]
Mcrypt 2.4.4 does not compile into php. php still compiles, but mcrypt fails to init. 

FIX:

in configure:

line 23006: should read: LIBS=-lltdl -mcrypt  $LIBS
line 23040: should read:  LIBS=-lltdl -mcrypt  $LIBS


---



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


-- 
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 #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-05-10 Thread sniper

ID: 10331
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: GD related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Try latest CVS. If that doesn't work for you, reopen.

--Jani


Previous Comments:
---

[2001-04-16 21:12:00] [EMAIL PROTECTED]
User Reported:
-
Works for some parts, but not all:
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes

To whom should I send the config.log? It is uncompressed about 120K,
compress about 11K - so probably not suitable for a mailing list?

Regards,
jens.

BTW: Any hints how to trace that problem:

# /etc/init.d/apachectl-1.3.19 start
Syntax error on line 233 of /opt/www/conf/httpd.conf:
API module structure `php4_module' in file /opt/www/libexec/libphp4.so is garbled - 
perhaps this is not an Apache module DSO?
/etc/init.d/apachectl start: httpd could not be started
-

Please email me the config.log to mailto:[EMAIL PROTECTED]

The garbled module problem is technically a different bug; I would suggest ensuring 
that gd links in correctly (or building without) and making sure that you do 
./cvsclean; ./buildconf before you configure.

---

[2001-04-16 05:30:22] [EMAIL PROTECTED]
Could you reverse your patch, and then:
rm config.cache
./configure
 --prefix=/develop/sl7/proto/opt/php4
 --with-apxs --enable-discard-path
 --with-config-file-path=/etc --enable-safe-mode
 --with-exec-dir=/opt/php/bin
 --with-openssl=/opt/ssl --enable-calendar
 --enable-ftp --with-ldap --with-mysql
 --with-oci8=/opt/oracle --enable-sockets
 --with-regex=system --enable-sysvsem
 --enable-sysvshm --with-zlib=/usr/local
 --with-xpm-dir=/usr/X11R6
 --with-jpeg-dir=/usr
 --enable-track-vars
 --with-png-dir=/usr
 --with-gd=/usr/local 

Let me know if it works; if it does not, I would like to see your config.log to find 
out what is going on.

BTW: --with-sockets enables the sockets extension - you probably don't need it.



---

[2001-04-15 14:21:54] [EMAIL PROTECTED]
I made a quick and dirty patch to configure, so that it
works:

--- configure   Thu Jan 11 19:39:29 2001
+++ ../../php-4.0.4pl1/configureSun Apr 15 19:40:28 2001
@@ -16390,7 +16390,7 @@
   echo $ac_n (cached) $ac_c 16
 else
   ac_save_LIBS=$LIBS
-LIBS=-lgd  $LIBS
+LIBS=-lgd  -lpng -lz $LIBS
 cat  conftest.$ac_ext EOF
 #line 16396 configure
 #include confdefs.h
@@ -16433,7 +16433,7 @@
   echo $ac_n (cached) $ac_c 16
 else
   ac_save_LIBS=$LIBS
-LIBS=-lgd  $LIBS
+LIBS=-lgd -lpng -lz $LIBS
 cat  conftest.$ac_ext EOF
 #line 16439 configure
 #include confdefs.h
@@ -16476,7 +16476,7 @@
   echo $ac_n (cached) $ac_c 16
 else
   ac_save_LIBS=$LIBS
-LIBS=-lgd  $LIBS
+LIBS=-lgd -lpng -lz $LIBS
 cat  conftest.$ac_ext EOF
 #line 16482 configure
 #include confdefs.h
@@ -16519,7 +16519,7 @@
   echo $ac_n (cached) $ac_c 16
 else
   ac_save_LIBS=$LIBS
-LIBS=-lz  $LIBS
+LIBS=-lz -lpng $LIBS
 cat  conftest.$ac_ext EOF
 #line 16525 configure
 #include confdefs.h


---

[2001-04-15 12:20:57] [EMAIL PROTECTED]
Nope, --with-png-dir does not resolve the problem (that was
my first try). I can't use --with-freetype-dir, since freetype support is not part of 
the used gd lib.

Here the params I used:
./configure --prefix=/develop/sl7/proto/opt/php4 --with-apxs --enable-discard-path 
--with-config-file-path=/etc --enable-safe-mode --with-exec-dir=/opt/php/bin 
--with-openssl=/opt/ssl --enable-calendar --enable-ftp --with-gd=/usr/local 
--with-ldap --with-mysql --with-oci8=/opt/oracle --enable-sockets --with-regex=system 
--enable-sysvsem --enable-sysvshm --with-zlib=/usr/local --with-xpm-dir=/usr/X11R6 
--with-jpeg-dir=/usr --enable-track-vars --with-png-dir=/usr

BTW: What for is the --with-sockets stuff (just for incl. of -lsockets ?)


---

[2001-04-15 08:54:59] [EMAIL PROTECTED]
Sorry - you also need --with-xpm-dir, and I meant to say GD 2.



---

The remainder of the comments for this report are too long.  To view the rest 

Re: [PHP-DEV] mailparse extension

2001-05-10 Thread Vadka



On Fri, 4 May 2001, Andrei Zmievski wrote:

 On Fri, 04 May 2001, Hartmut Holzgraefe wrote:
  oops, we are going to have internal extension dependencies beside
  those to ext/standard?
Hm..
I have a mailparser c code PHP module more or less rady. Can put it to
public domain. There is a need to rewrite some parts of it, maybe.

So, is it actual?



-- 
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 #9897 Updated: scripts fail with error Fatal error: Unable to create Java Virtual Machine

2001-05-10 Thread sniper

ID: 9897
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Java related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Are you planning on answering?



Previous Comments:
---

[2001-04-16 06:53:05] [EMAIL PROTECTED]
Does this happen after the creation of the third JVM??

-James

---

[2001-03-21 06:09:45] [EMAIL PROTECTED]
The following:

  $system = new Java(java.lang.System);
  print(Java version:  .  $system-getProperty(java.version) .  BRn);
  $formatter = new Java(java.text.SimpleDateFormat, ,  dd,  'at' 
h:mm:ss a );
  print($formatter-format(new Java(java.util.Date)) . BRn);

produces the error Unable to create Java Virtual Machine in xyz.php on line XX under 
PHP 4.0.5RC1 as well as the latest 4.0.4 off the php.net site.

my php.ini section is:

extension=php_java.dll
java.library.path = 
C:Inetpubphpextensions;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib

java.library = C:Inetpubjdk-1.3jrebinclassicjvm.dll
java.class.path = C:Inetpubphpextensionsphp_java.jar
java.home = 
C:Inetpubjdk-1.3bin;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib


Im using J2SDK 1.3

The script actually works the first few times (the ammount of times varies) but then 
continuously fails. I've seen numerous reports of people with the same problem on 
http://www.phpbuilder.net

Installing an another machine with the same config, reproduces the same error.

It also appears to be somewhat related to bug # 6617 
(http://www.php.net/bugs.php?id=6617) and # 6925 (http://www.php.net/bugs.php?id=6925)

Are there any plans to tackle these issues?

Robin

---



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


-- 
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 #10389 Updated: mysql_query(); returns an invalid result resource

2001-05-10 Thread sniper

ID: 10389
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Can't reproduce. If still problem with latest CVS, reopen.

--Jani


Previous Comments:
---

[2001-04-19 17:40:19] [EMAIL PROTECTED]
This appears to be related to 4.0.4pl1.  I can reproduce it on a 4.0.4pl1 box, but not 
anything newer.

Can you try 4.0.5 or a CVS snapshot? http://snaps.php.net/

-Chris

---

[2001-04-19 16:42:54] [EMAIL PROTECTED]
I checked what you said with mysqladmin and mysql.  The
database ue does exist, as does the table jobsc.  Thanks
for saying something about the table being empty, as it was.
I fixed this problem (I'd had it before, but i just did this new
script by itself to make sure) and added 1 entry to the table jobsc.  PHP4 still 
returns the same warning as before on the
SELECT * FROM jobsc  and in the mysql console, executing
that instruction returns the one and only row in the table jobsc.

---

[2001-04-18 20:29:19] [EMAIL PROTECTED]
My bad...it would not return false.  It's been a long long day.

But it would return false if the table jobsc did not exist or the database ue did not 
exist.

-Chris


---

[2001-04-18 20:26:15] [EMAIL PROTECTED]
Your query is not returning any rows, and as such mysql_query returns false.  False of 
course is not a valid mysql result and thus the Warning.

If you are 100% certain the query returns results then that would be a problem, 
otherwise this is not a bug.

Please check this query from the mysql command line and reopen if there really is a 
problem.

-Chris

---

[2001-04-18 19:45:58] [EMAIL PROTECTED]
Here is the code I am using that produces the error:

?php
$db = mysql_connect(localhost);
mysql_select_db(ue, $db);
$result = mysql_query(SELECT * FROM jobsc);
$rows = mysql_num_rows($result);
?

on the last line is where the error is generated.  In
any browser, I see:

Warning: Supplied argument is not a valid MySQL result
resource ...

My setup contains apache 1.3.19 with the static PHP 4.0.4pl1
module compiled in.  My configure lines for PHP are:

./configure --with-apache=/home/apache_1.3.19
--with-mysql=/usr/local/mysql

/usr/local/mysql is the install directory for mysql

That is all the information I believe I have, and I'm
relatively sure that PHP is not crashing, per say.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #9585 Updated: Apache do not start - Floating Point Exception

2001-05-10 Thread sniper

ID: 9585
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Web Server problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no feedback


Previous Comments:
---

[2001-04-10 10:51:04] [EMAIL PROTECTED]
Have you tried the latest CVS yet? Does this happen with it too? 

--Jani



---

[2001-03-06 18:52:09] [EMAIL PROTECTED]
Can you please try the latest CVS snapshot from http://snaps.php.net/
and if this happens with it too, generate a GDB backtrace of the crash.
Remember to configure PHP with --enable-debug first before generating
the backtrace!

--Jani


---

[2001-03-06 14:38:42] [EMAIL PROTECTED]
I am currently running PHP3 on a Cobalt Qube 2, I want to add PHP 4, to be used with a 
PHP 4 written email application.

I have no problem to run ./configure, or make or make install, my problem occurs when 
I stop and start apache. Apache do not want to start, it do not give me any errors, 
when I run httpd it gives me the error Floating Point Exception. I have compile 
various versions, with and without MySql, and I still get the error. When I include 
the libphp4.so in the httpd.conf file, this error occur, if I remove it works fine 
again.

I am running a Apache 1.3.3, MySql 3.22.21 on a Cobalt with a mips processor.

I am stuck, I have tried all options in my mind, plus all information that I gather 
from PHP.net FAQ and Cobalt FAQ, I have tried all the different options suggested in 
these FAQ when it comes to ./cofigure. So, with that conclusion I beleive it may be a 
bug.

---



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


-- 
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 #10401 Updated: Call to undefined function : get_defined_vars()

2001-05-10 Thread sniper

ID: 10401
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no feedback. Update to 4.0.5.



Previous Comments:
---

[2001-04-19 09:33:17] [EMAIL PROTECTED]
are you sure you are using 4.0.4 or newer?



---

[2001-04-19 09:33:09] [EMAIL PROTECTED]
are you sure you are using 4.0.4 or newer?



---

[2001-04-19 09:12:26] [EMAIL PROTECTED]
causes the following error:
Fatal error:  Fatal error: Call to undefined function: get_defined_vars()

---



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


-- 
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 #10748 Updated: LIBGD20 must be enabled manually in main/php_config.h

2001-05-10 Thread morten

ID: 10748
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Configuration Issues
Operating system: Linux 2.4.3
PHP Version: 4.0 Latest CVS (2001-05-09)
Description: LIBGD20 must be enabled manually in main/php_config.h

I still have problems with Bug 10747, so I can't check it yet

Previous Comments:
---

[2001-05-10 05:24:16] [EMAIL PROTECTED]
Can you try the latest CVS again?
I have changed the configure script a lot..

--Jani


---

[2001-05-09 12:05:26] [EMAIL PROTECTED]
./configure 
  --prefix=/usr 
  --with-apxs=/usr/sbin/apxs 
  --with-config-file-path=/etc/httpd 
  --with-regex=system 
  --with-exec-dir=/usr/bin 
  --enable-safe-mode 
  --enable-debugger 
  --enable-magic-quotes 
  --enable-track-vars 
  --enable-memory-limit 
  --enable-ftp 
  --disable-debug 
  --disable-rpath 
  --with-bz2 
  --with-zlib=/usr 
  --with-gmp 
  --with-imap=shared,/usr 
  --with-ldap=shared,/usr 
  --with-mysql=shared,/usr 
  --with-pgsql=shared,/usr 
  --with-openssl=shared,/usr 
  --with-gd=shared,/usr 
  --with-jpeg-dir=/usr 
  --with-png-dir=/usr 
  --with-freetype-dir=/usr/local

I haven't got my config.log at the moment, as I updated to
newest CVS, and that failed while running buildconf...

---

[2001-05-09 08:29:04] [EMAIL PROTECTED]
It works for me...
Can you post your configure line and email your config.log file to [EMAIL PROTECTED] so that 
I can check into it?

--Wez.

---

[2001-05-09 07:44:25] [EMAIL PROTECTED]
the configure script doesn't detect libgd2 automatically

it is neccessary to put this in manually
#define HAVE_LIBGD20 1

---


Full Bug description available at: http://bugs.php.net/?id=10748


-- 
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 #6608 Updated: sizeof($array) extremly slow in loop. 90% cpu util

2001-05-10 Thread sniper

ID: 6608
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Performance problem
Operating system: 
PHP Version: 4.0.2
Assigned To: 
Comments:

No feedback. I problem exists with 4.0.5, reopen.


Previous Comments:
---

[2001-04-10 10:12:23] [EMAIL PROTECTED]
Could you please test your script with either the PHP 4.0.4pl1 release, the latest PHP 
4.0.5 RC or a current CVS snapshot from http://snaps.php.net/? Thanks.


---

[2000-09-07 13:01:24] [EMAIL PROTECTED]
The following code performed well under 3.0.16.
  for ($i=0; $i  sizeof($teacherarray); $i++) {
 $a=$teacher_array[$i];
 if ($a-teacher_id==$teacher_id) {
break;
 }
  } 
However, under php 4.0.2 it is extrememly slow and causes cpu util for the httpd 
process to hit 90%.  $teacherarray is not being modified during the loop so the 
condition isn't changing.

BTW: Changing to the following code works ok.

  $numteachers = sizeof($teacherarray);
  for ($i=0; $i  $numteachers; $i++) {
 $a=$teacher_array[$i];
 if ($a-teacher_id==$teacher_id) {
break;
 }
  } 

Either the sizeof function has had a serious decrease in its speed or something is 
awry..


---



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


-- 
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 #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-05-10 Thread sniper

ID: 9666
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Graphics related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

No feedback. If problem exists with PHP 4.0.5, reopen.



Previous Comments:
---

[2001-04-19 09:55:02] [EMAIL PROTECTED]
Could you please add script into this report that you use to
ADD the images into the database? And please make it short
one. 

--Jani


---

[2001-03-11 20:36:44] [EMAIL PROTECTED]
Yes,I use addslashes on the binary data.Didn't need to use this function?

---

[2001-03-11 05:35:11] [EMAIL PROTECTED]
If you inserted this with PHP also, did you use addslashes
on the binary data? IIRC that's required, or mysql 'll be kinda messy with the data..

-- Mathieu

---

[2001-03-11 00:04:12] [EMAIL PROTECTED]
Sorry,this page is not on web,it's on my intranet.I am a Chinese,I am not good at 
english.I mean one of the two types will not display on the first time that the page 
load,Must refresh can display togather.

---

[2001-03-10 14:07:36] [EMAIL PROTECTED]
Works for me just fine. What is the url to that page of 
yours? 

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #9868 Updated: Missing .dll.

2001-05-10 Thread sniper

ID: 9868
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Again, no feedback. We can't help if you don't give us
the required information.

Try 4.0.5. If problem exist with it, reopen.


Previous Comments:
---

[2001-04-19 13:57:46] [EMAIL PROTECTED]
Then you'd better tell us:

a. what dll was reported as missing

b. did you download the 'installer' version of php, the full zip, or the source.

---

[2001-04-19 13:17:15] [EMAIL PROTECTED]
I've downloaded Php from php.net and i've got winsock 2 installed on my 
Computer(Windows 95)and i'm currently using Xitami and vWebServer 2.1 as my Web 
Server. 

Rafael Estrada
[EMAIL PROTECTED]

---

[2001-04-19 09:40:17] [EMAIL PROTECTED]
No feedback. And you should consider upgrading your system. 
Anyway, not a bug in PHP.

--Jani


---

[2001-03-20 08:31:43] [EMAIL PROTECTED]
Some questions:

Can you confirm that you are installing via the php installer downloaded from the 
downloads page on www.php.net.

I believe that early versions of Win95 had little or no internet functionality - I 
think they probably had no winsock dll, or at least a brain damaged one. Have you 
upgraded your OS so that it has a Winsock dll and can run a web server and a modern 
browser?

Are there any further clues as to which dll is missing?

Which web server are you using?

---

[2001-03-20 08:17:12] [EMAIL PROTECTED]
When i downloaded this Program it then stared telling me that there is a .DLL FILE 
missing.It wouldn't lit me Complete the Installyion.

THANK YOU
Rafael Estrada
[EMAIL PROTECTED]

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10747 Updated: buildconf fails with missing macros

2001-05-10 Thread morten

ID: 10747
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Compile Failure
Operating system: Linux 2.4.3
PHP Version: 4.0 Latest CVS (2001-05-09)
Description: buildconf fails with missing macros

root@Tenchi /usr/src/php4# cvs -d
:pserver:[EMAIL PROTECTED]:/repository co php4
root@Tenchi /usr/src/php4# cvs -d
:pserver:[EMAIL PROTECTED]:/repository co Zend TSRM
root@Tenchi /usr/src/php4# ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
rebuilding configure
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_ADD_INCLUDE
***BUG in Autoconf--please report*** AC_ADD_LIBRARY_WITH_PATH
rebuilding acconfig.h
rebuilding main/php_config.h.in

Previous Comments:
---

[2001-05-10 05:22:30] [EMAIL PROTECTED]
Should be fixed now.


---

[2001-05-09 07:34:19] [EMAIL PROTECTED]
root@Tenchi /usr/src/php4# ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
rebuilding configure
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_ADD_INCLUDE
***BUG in Autoconf--please report*** AC_ADD_LIBRARY_WITH_PATH
rebuilding acconfig.h
rebuilding main/php_config.h.in

my autoconf is the one from ftp.gnu.org

---


Full Bug description available at: http://bugs.php.net/?id=10747


-- 
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 #9836 Updated: php unexpectedly ends on too long scripts

2001-05-10 Thread sniper

ID: 9836
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback. If problem exists with PHP 4.0.5, reopen.


Previous Comments:
---

[2001-04-19 09:35:10] [EMAIL PROTECTED]
Does this happen with latest CVS from http://snaps.php.net/ ?

--Jani


---

[2001-03-19 13:57:54] [EMAIL PROTECTED]
With that limited information you gave in the first
comments I couldn't know that.

Ok, so it doesn't crash? Just stops?
Computer generated scripts? How big?
And what do they do? 

Could you check that it doesn't crash, ie. run the php
script which 'ends' within gdb:

# gdb php
(gdb) run -f thisscriptendstoosoon.php

--Jani


---

[2001-03-19 12:13:53] [EMAIL PROTECTED]
I know of time limit, smart guy.

But I don't have it set to 1 sec -- that is approximately the time in which php 
terminates.

(I hope you mark this problem as closed now -- THAT YOU'VE SOLVED IT).

Damn.

---

[2001-03-19 11:55:37] [EMAIL PROTECTED]
RTFM:

http://www.php.net/manual/en/function.set-time-limit.php



---

[2001-03-19 08:35:04] [EMAIL PROTECTED]
we have some long computer generated scripts on our system. when we run such a long 
script, php suddenly ends without producing any output and reports exit status 1.

I think php exits while parsing the script.

(I can provide an example of such script on demand)

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10639 Updated: include() require()

2001-05-10 Thread sniper

ID: 10639
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Try this script:

?php

echo this is a test;

error_reporting(E_ALL);
include(test.inc);

?


Any errors reported? In error_log maybe?

--Jani



Previous Comments:
---

[2001-05-10 05:53:49] [EMAIL PROTECTED]
Yes.

-- Stephan

---

[2001-05-10 05:44:48] [EMAIL PROTECTED]
So does that same script work if you comment out the 
include part? And add some echo sometext there?

--Jani


---

[2001-05-10 05:37:37] [EMAIL PROTECTED]
There is no php-error visible. My browser (IE 5.5) says that the page can not be found.

---

[2001-05-10 05:34:17] [EMAIL PROTECTED]
The binaries from IBM does not contain a php.ini file. In phpinfo() there is no value 
set to E_ALL.

---

[2001-05-10 05:00:46] [EMAIL PROTECTED]
Does it print out any errors? Is your error level
set to E_ALL in php.ini?

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10759 Updated: undefined symbol: mxdriver

2001-05-10 Thread ruderstaller

ID: 10759
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: IMAP related
Operating system: Linux - Redhat 7.1 - Kernel 2.4.
PHP Version: 4.0.5
Description: undefined symbol: mxdriver

Of Course the installation instruction i have followed.

and yes, ldconfig has been executed. :)



Previous Comments:
---

[2001-05-09 14:32:40] [EMAIL PROTECTED]
You haven't followed the install instructions.
Check the www.php.net/imap page for more info.

--Jani


---

[2001-05-09 13:37:47] [EMAIL PROTECTED]
Cannot load /usr/local/apache/libexec/libphp4.so into
server: /usr/local/apache/libexec/libphp4.so: undefined
symbol: mxdriver

Tried with IMAP-4.7c (see http://www.php.net/bugs.php?id=7537)

but same error with:
IMAP 2000
and
imap-2001.BETA.SNAP-0105042209

PHP configure line:
./configure --with-mysql
--with-apxs=/usr/local/apache/bin/apxs  --with-ftp
--with-ldap --with-ttf --with-gd --enable-sysvshm=yes
--enable-sysvsem=yes --enable-url-inlcudes=yes
--enable-track-vars=yes --with-imap

No errors while compiling

If you need futher information let me know!

---


Full Bug description available at: http://bugs.php.net/?id=10759


-- 
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 #10783: getImagesize return false for some jpeg images

2001-05-10 Thread phasis

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux release 6.2 (Zoot)
PHP version:  4.0.5
PHP Bug Type: GetImageSize related
Bug description:  getImagesize return false for some jpeg images


I found some bug in 4.0.5 source distribution 
/ext/standard/image.c

In function php_handle_jpeg,
variable marker must be initialized before for loop
like following

  marker = FP_FGETC(socketd,fp,issock);
  for(;;) {
 ...
 marker = php_next_marker(socketd,fp,issock);
  }

I modified souce code and rebuit php modlue.
Then getImagesize work properly for all jpeg images.

  Park Hee-Sob.





-- 
Edit Bug report at: http://bugs.php.net/?id=10783edit=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] Re: Bug #9897 Updated: scripts fail with error Fatal error: Unableto create Java Virtual Machine

2001-05-10 Thread robin

Sorry yes, I'd forgotten the original message. apologies for that.
yes the error occurs from the 3rd JVM onwards.

Robin

On 10 May 2001, Bug Database wrote:

 ID: 9897
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Status: Feedback
 Bug Type: Java related
 Operating system: 
 PHP Version: 4.0.4pl1
 Assigned To: 
 Comments:
 
 Are you planning on answering?
 
 
 
 Previous Comments:
 ---
 
 [2001-04-16 06:53:05] [EMAIL PROTECTED]
 Does this happen after the creation of the third JVM??
 
 -James
 
 ---
 
 [2001-03-21 06:09:45] [EMAIL PROTECTED]
 The following:
 
   $system = new Java(java.lang.System);
   print(Java version:  .  $system-getProperty(java.version) .  BRn);
   $formatter = new Java(java.text.SimpleDateFormat, ,  dd,  'at' 
h:mm:ss a );
   print($formatter-format(new Java(java.util.Date)) . BRn);
 
 produces the error Unable to create Java Virtual Machine in xyz.php on line XX 
under PHP 4.0.5RC1 as well as the latest 4.0.4 off the php.net site.
 
 my php.ini section is:
 
 extension=php_java.dll
 java.library.path = 
C:Inetpubphpextensions;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib
 java.library = C:Inetpubjdk-1.3jrebinclassicjvm.dll
 java.class.path = C:Inetpubphpextensionsphp_java.jar
 java.home = 
C:Inetpubjdk-1.3bin;C:Inetpubjdk-1.3jrebin;C:Inetpubjdk-1.3jrelib;C:Inetpubjdk-1.3lib
 
 Im using J2SDK 1.3
 
 The script actually works the first few times (the ammount of times varies) but then 
continuously fails. I've seen numerous reports of people with the same problem on 
http://www.phpbuilder.net
 
 Installing an another machine with the same config, reproduces the same error.
 
 It also appears to be somewhat related to bug # 6617 
(http://www.php.net/bugs.php?id=6617) and # 6925 (http://www.php.net/bugs.php?id=6925)
 
 Are there any plans to tackle these issues?
 
 Robin
 
 ---
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=9897edit=2
 


-- 
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]




Re: AW: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-10 Thread Zeev Suraski

At 06:46 10/5/2001, Harald Radi wrote:
looking forward to getting php case sensitive i'm just wondering that
function names are exported mixed case in the com extension.
e.g. there's a COM_load() and a com_set(), is there a special reason for
this (zeev) ?

There's no special reason, and it's going to be fixed ifwhen we switch to 
case sensitivity (right now the declaration doesn't really matter).  At any 
rate, to match the standards file, I'll fix it to be lowercase.

another question: according to the CODING_STANDARDS file every function
should be lowercase, but how about exported classes ? is there a guidline
for this ?


No guidelines yet.  I'm sure we'll work on them when it becomes relevant.

Zeev


-- 
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]




Re: [PHP-DEV] Bug #10744: session_start() serializes exec

2001-05-10 Thread Oleg Makarenko

 Try this in a script:
 ?php
   exec( /bin/sleep 30 /dev/null 21 /dev/null  ) ;
   echo Done !! ;
 ?
 
 Now call it from the browser several time (Reload button). If you type a ps ax 
command you will see several sleep 30 processes. Wait all the processes to stop.
 
 Now put session_start() as the first line. Press RELOAD: it completes OK. Now press 
RELOAD again: it hangs !!! It waits for the sleep to terminate before starting the 
next !! So if you press RELOAD 10 times you need to wait 300 seconds !!
 
 Is it a normal behaviour ? How can I have a process completely in the background ?

That is by design (for file based session storage at least). 

See http://www.php.net/bugs.php?id=6287edit=1 and
http://bugs.php.net/?id=10675edit=1

All access to session variables in PHP4 is serialized. If you want to
start some daemon from inside your php script make it to close all
unused file handles at startup or close the session before exec().

oleg


-- 
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]




Re: [PHP-DEV] unbuffered mysql_db_query for 4.0.6?

2001-05-10 Thread Zeev Suraski

At 13:27 10/5/2001, [EMAIL PROTECTED] wrote:
On Thu, 10 May 2001, Wez Furlong wrote:

  It's a notice for now; we can ramp up to a warning in 4.1 and nuke it in
  4.2.

I think takes too long then. 4.1 is not due for atleast 3-6 monthes I
guess and 4.2 will take probably more than a year. I'd say, make it a
warning in 4.0.8 and nuke it in 4.0.10 (or 4.1).

What does that mean that it takes 'too long', though.  Too long for 
what?  I don't see any strong reason to nuke it at all, definitely not in 
the near future.
Remember people, there are millions of users out there who don't appreciate 
us at all for every downwards-compatibility break that we make, and for a 
good reason.

Zeev


-- 
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] Re: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Phil Driscoll

then please merge the install.txt in there, as it's currently somewhat 
incomplete

I will attempt to do that this afternoon.

Cheers
-- 
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
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]




Re: [PHP-DEV] unbuffered mysql_db_query for 4.0.6?

2001-05-10 Thread Jani Taskinen

On Thu, 10 May 2001, Zeev Suraski wrote:

What does that mean that it takes 'too long', though.  Too long for
what?  I don't see any strong reason to nuke it at all, definitely not in
the near future.
Remember people, there are millions of users out there who don't appreciate
us at all for every downwards-compatibility break that we make, and for a
good reason.

Hmm..I haven't seen millions of emails about ANY downwards-compatibility
break. I haven't seen ANY emails about them. So where do they send them?

If you tell in e.g. NEWS file This version will break this and that
why would anyone get pissed? They had been warned. Let them use the old
versions then.

--Jani



-- 
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] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Cynic

I don't think so, it looks ok.
But I must admit that I prefer plaintext readme's... But that's
just me.

At 13:40 10.5. 2001, Liz wrote the following:
-- 
I noticed no comments at all about the HTML version of the readme I offered..

Does it suck that bad?

-- 
PHP Quality Assurance 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]
--end of quote-- 


[EMAIL PROTECTED]
-
And the eyes of them both were opened and they saw that their files
were world readable and writable, so they chmoded 600 their files.
- Book of Installation chapt 3 sec 7 


-- 
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 #10752 Updated: infinite loops prevents pages from loading

2001-05-10 Thread anabolic

ID: 10752
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Programming Data Structures
Operating system: Linux and Win2k
PHP Version: 4.0.4pl1
Description: infinite loops prevents pages from loading

This is going to be used for a chat board, there will be an infinite loop which reads 
from a mySQL db and flushes the output. 

I tought there was something wrong with my db access code however I realised that, the 
code was not working altough I have simplified it as I have posted.

I have tried with different os and web server software. I have tried Linux  Apache 
and Win2k  IIS5.

When I open the page, it works fine. When I open the same page in another window at 
the same computer it still works fine however if I try to open a third browser window 
(private chat with 3 person for instance) the browser window freezes and if I close 
one of the previous browser windows the third window starts working.

Thank you,

Argun

Previous Comments:
---

[2001-05-09 10:42:15] [EMAIL PROTECTED]
1.) Why are you doing an infinite loop in the first place?

2.) This is working just fine for me on my linux machine with 4.0.5.

-Chris

---

[2001-05-09 10:01:38] [EMAIL PROTECTED]
html

head
meta http-equiv=Content-Type content=text/html; charset=windows-1254
titleLoop/title
/head
body
?
for($value=1; $value0; $value++){
echobr$value;

flush();
sleep(1);
}
?
/body

/html

The code above does not work when opened in more than two browsers on the same 
computer. 

Any ideas?

Thank you. 

---


Full Bug description available at: http://bugs.php.net/?id=10752


-- 
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] Re: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Phil Driscoll

Does it suck that bad?

No - it doesn't suck at all!
It's just that James's suggestion that we update the installation chapter of
the manual and generate the installation noted from that is so eminently
sensible, that it would be foolish to do otherwise - which sadly means that
the efforts both you and I did earlier will be consigned forever to languish
in the 'deleted items' folder :)

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
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] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Liz

 I don't think so, it looks ok.
 But I must admit that I prefer plaintext readme's... But that's
 just me.

Depends, for a unix system, I'd agree, I dont want a HTML one, but for
windows, its nice to have one you can easily skip to bits.  So, in this case,
Id say it was worth it. As every windows machine has file association and a
browser to view it with.


-- 
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] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Liz

 It's just that James's suggestion that we update the installation chapter of
 the manual and generate the installation noted from that is so eminently
 sensible, that it would be foolish to do otherwise - which sadly means that
 the efforts both you and I did earlier will be consigned forever to languish
 in the 'deleted items' folder :)

damn.


-- 
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] PATCH: peak-memory-usage-log patch waiting....

2001-05-10 Thread Thies C. Arntzen


hi,

i've written a small patch which logs php's peak memory usage
to the apache log-file.

after applying this patch (against latest CVS) you should
configure php using --enable-memory-usage. after compile
and installing you have a new apache (and _only_ apache)
log-directive called mod_php_memory_usage which contains the
peak-memory usage for your page. by adding it to your apache
LogFormat you will now get this valuable information in your
log and you can easily spot pages that need lots of memory!

hoto say %{mod_php_memory_usage}n in you LogFormat:
LogFormat %h %l %u %t \%r\ %s %b PHP:%{mod_php_memory_usage}n \%{Referer}i\ 
\%{User-Agent}i\ combined

patch is attached (should cause _very near_ to no performance
hit)

zeev ( others;-), using AG() after send_parsed_php *is* safe
as the various shutdown functions are first called from the
apache shutdown handler - which is calling up *way* after this.

re,
tc



Index: sapi/apache/mod_php4.c
===
RCS file: /repository/php4/sapi/apache/mod_php4.c,v
retrieving revision 1.94
diff -u -r1.94 mod_php4.c
--- sapi/apache/mod_php4.c  2001/05/07 22:02:44 1.94
+++ sapi/apache/mod_php4.c  2001/05/10 11:54:17
@@ -540,7 +540,19 @@
 
 static int send_parsed_php(request_rec * r)
 {
-   return send_php(r, 0, NULL);
+   int result =  send_php(r, 0, NULL);
+
+#if MEMORY_USAGE
+{
+char mem_usage[ 32 ];
+ALS_FETCH()
+ 
+sprintf(mem_usage,%u, (int) AG(max_allocated_memory));
+ap_table_setn(r-notes, mod_php_memory_usage, 
+ap_pstrdup(r-pool,mem_usage));
+}
+#endif
+
+   return result;
 }
 
 
Index: Zend/Zend.m4
===
RCS file: /repository/Zend/Zend.m4,v
retrieving revision 1.22
diff -u -r1.22 Zend.m4
--- Zend/Zend.m42001/03/11 19:35:25 1.22
+++ Zend/Zend.m42001/05/10 11:56:23
@@ -123,6 +123,13 @@
   ZEND_MEMORY_LIMIT=no
 ])
 
+AC_ARG_ENABLE(memory-usage,
+[  --enable-memory-usage   Compile with memory usage support. ], [
+  ZEND_MEMORY_USAGE=$enableval
+],[
+  ZEND_MEMORY_USAGE=no
+])
+
 AC_MSG_CHECKING(whether to enable experimental ZTS)
 AC_MSG_RESULT($ZEND_EXPERIMENTAL_ZTS)
 
@@ -132,6 +139,9 @@
 AC_MSG_CHECKING(whether to enable a memory limit)
 AC_MSG_RESULT($ZEND_MEMORY_LIMIT)
 
+AC_MSG_CHECKING(whether to enable a memory usage)
+AC_MSG_RESULT($ZEND_MEMORY_USAGE)
+
 AC_MSG_CHECKING(whether to enable Zend debugging)
 AC_MSG_RESULT($ZEND_DEBUG)

@@ -166,6 +176,13 @@
 else
   AC_DEFINE(MEMORY_LIMIT, 0, [Memory limit])
 fi
+
+if test $ZEND_MEMORY_USAGE = yes; then
+  AC_DEFINE(MEMORY_USAGE, 1, [Memory usage])
+else
+  AC_DEFINE(MEMORY_USAGE, 0, [Memory usage])
+fi
+
 
 changequote({,})
 if test -n $GCC  test $ZEND_INLINE_OPTIMIZATION != yes; then
Index: Zend/zend_alloc.c
===
RCS file: /repository/Zend/zend_alloc.c,v
retrieving revision 1.76
diff -u -r1.76 zend_alloc.c
--- Zend/zend_alloc.c   2001/04/30 05:39:37 1.76
+++ Zend/zend_alloc.c   2001/05/10 11:56:24
@@ -185,6 +185,12 @@
 #if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size, SIZE);
 #endif
+#if MEMORY_USAGE
+   AG(cur_allocated_memory) += SIZE;
+   if (AG(cur_allocated_memory)  AG(max_allocated_memory))
+   AG(max_allocated_memory) = AG(cur_allocated_memory);
+#endif
+
HANDLE_UNBLOCK_INTERRUPTIONS();
return (void *)((char *)p + sizeof(zend_mem_header) + MEM_HEADER_PADDING);
 }
@@ -228,6 +234,9 @@
 #if MEMORY_LIMIT
AG(allocated_memory) -= SIZE;
 #endif
+#if MEMORY_USAGE
+   AG(cur_allocated_memory) -= SIZE;
+#endif

free(p);
HANDLE_UNBLOCK_INTERRUPTIONS();
@@ -305,6 +314,12 @@
 #if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size - p-size, SIZE - REAL_SIZE(p-size));
 #endif
+#if MEMORY_USAGE
+   AG(cur_allocated_memory) += SIZE - REAL_SIZE(p-size);
+   if (AG(cur_allocated_memory)  AG(max_allocated_memory))
+   AG(max_allocated_memory) = AG(cur_allocated_memory);
+#endif
+
p-size = size;
 
HANDLE_UNBLOCK_INTERRUPTIONS();
@@ -390,6 +405,10 @@
AG(allocated_memory) = 0;
AG(memory_exhausted) = 0;
 #endif
+#if MEMORY_USAGE
+   AG(cur_allocated_memory) = 0;
+   AG(max_allocated_memory) = 0;
+#endif
 
memset(AG(fast_cache_list_head), 0, sizeof(AG(fast_cache_list_head)));
memset(AG(cache_count), 0, sizeof(AG(cache_count)));
@@ -487,6 +506,10 @@
}
 #if MEMORY_LIMIT
AG(memory_exhausted)=0;
+#endif
+#if MEMORY_USAGE
+   AG(cur_allocated_memory) = 0;
+   AG(max_allocated_memory) = 0;
 #endif
 
 #if (ZEND_DEBUG)
Index: Zend/zend_globals.h
===
RCS file: /repository/Zend/zend_globals.h,v
retrieving revision 1.61
diff -u -r1.61 zend_globals.h
--- 

[PHP-DEV] Bug #10780 Updated: apache segmentation fault with libphp4.so

2001-05-10 Thread christoph . hofstetter

ID: 10780
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Apache related
Operating system: aix 4.3.3
PHP Version: 4.0.5
Description: apache segmentation fault with libphp4.so

backtrace:

Core was generated by `httpd'.   
Program terminated with signal 11, Segmentation fault.   
#0  0xd2ebbba4 in ap_register_cleanup () 
Setting up the environment for debugging gdb.
.gdbinit:5: Error in sourced command file:   
Function internal_error not defined.   
(gdb) bt 
#0  0xd2ebbba4 in ap_register_cleanup () 
#1  0xd2ebd030 in php_create_dir ()  
#2  0x10018634 in ap_single_module_configure ()  
#3  0x10044918 in load_module () 
#4  0x1001607c in invoke_cmd ()  
#5  0x10016f00 in ap_handle_command ()   
#6  0x10016ff0 in ap_srm_command_loop () 
#7  0x100177e8 in ap_process_resource_config ()  
#8  0x100184b8 in ap_read_config ()  
#9  0x10006938 in main ()
#10 0x11dc in __start () 


Previous Comments:
---

[2001-05-10 05:42:17] [EMAIL PROTECTED]
Could you please generate a GDB backtrace?
First reconfigure with --enable-debug of course.

rm config.cache
./configure .. your options + --enable-debug
make clean
make 
make install


and then try generating the backtrace.

--Jani


---

[2001-05-10 05:34:27] [EMAIL PROTECTED]
when I try to restart Apache after installing PHP4_mod (libphp4.so), it dies:

/usr/local/apache/bin/apachectl[124]: 61546 Segmentation fault(coredump)


configure was run as follows:

./configure --with-oracle   
--with-apxs=/usr/local/apache/bin/apxs  
--with-oci8 
--enable-discard-path   
--without-mysql 
--enable-track-vars 


I tried this with Oracle 8.1.7 and 8.1.6, and also with PHP 4.0.4, same result.

do I do something wrong? 

---


Full Bug description available at: http://bugs.php.net/?id=10780


-- 
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] Re: Bug #10773 Updated: C Compiler cannot create executables

2001-05-10 Thread Matthew K Keller

Yes I do have gcc loaded, so what do I do from here
- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 11:53 PM
Subject: Bug #10773 Updated: C Compiler cannot create executables


 ID: 10773
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: *Install and Config
 Operating system:
 PHP Version: 4.0.5
 Assigned To:
 Comments:

 Are you using GCC ? If not, get it.

 As this problem is with your compiler, not in PHP.
 And it's problem with your C++ compiler..

 --Jani


 Previous Comments:
 --
-

 [2001-05-09 19:23:52] [EMAIL PROTECTED]
 I am entering the following script for configure

./configure --with-nsapi=/opt/server/netscape/server --with-oci8 --enable-tr
ack-vars --enable-libgcc

 and I receive the following error
 checking for c++... c++
 checking whether the C++ compiler
(c++   -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solari
s2.8/2.95 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95 -R/OraHome1/lib
 -L/OraHome1/lib) works... no
 configure: error: installation or configuration problem: C++ compiler
cannot create executables.

 if I configure without
 --with-nsapi=/opt/server/netscape/server
 I do not have any problems, I saw this problem listed in the bug reports
but a solution was never posted. is there a fix or a work around.

 Matt



 --
-



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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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 #9334 Updated: Oracle8 connect by ODBC

2001-05-10 Thread kalowsky

ID: 9334
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

a recent posting on the php-db mailing list suggested the following as a correction, 
no idea if it is prevailent to your problem:

take your tnsnames.ora file and remove all Windows cr's from it (\r\n).  Use only 
the unix carriage returns (\n).

This might fix it.  As I can't read/understand what your SQL error is saying 
specifically, it might be worth a try :)  But a SQL08004 error is a server rejected 
access error (as per ODBC standards).

Previous Comments:
---

[2001-05-10 04:13:53] [EMAIL PROTECTED]
Ok , so I wrote whole script below and all error mesages:

SCRIPT:
?
$lacze = odbc_connect(LIVE,ter515,ter515);

$query = SELECT ITEM FROM LIVE.WO
  where WO_NUM='200504A00667' and WO_LINE='0001'
 ;

$result = odbc_exec($lacze, $query);
$item=odbc_result($result,1);
Echo(Item: $item);
?



RESULT (PHP 4.0.4):

Warning: SQL error: [Oracle][ODBC][Ora]ORA-12154: TNS:nie mo¿na wyliczyæ nazwy us³ugi 
, SQL state 08004 in SQLConnect in c:program filesapache 
groupapachehtdocstemptest.php4 on line 2

Warning: Supplied argument is not a valid ODBC-Link resource in c:program filesapache 
groupapachehtdocstemptest.php4 on line 8

Warning: Supplied argument is not a valid ODBC result resource in c:program 
filesapache groupapachehtdocstemptest.php4 on line 9
Item: 

RESULT (PHP 3.0.17):

Item: LA 6000-RSC


---

[2001-05-08 08:39:23] [EMAIL PROTECTED]
the statement because odbc_connect doesn't work does not help.  what doesn't work 
about it?  what error are you receiving?  does it connect but mark $aa as invalid, 
empty, or 0?  

can you please provide a full simple script to simulate the problem?  your sample 
below is missing declarations for the following variables:
Dsn_name
user
password



---

[2001-05-08 04:32:33] [EMAIL PROTECTED]
With PHP 4.0.5 is the same situation

My script: f.e

?
$aa=odbc_connect(Dns_name,user,password);
?

becouse odbc_connect doesn't work


My php.ini :

[PHP]


; Language Options ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the ? tag.  otherwise, only ?php and 
script tags are recognized.
asp_tags=   Off ; allow ASP-style % % tags
precision   =   14  ; number of significant digits displayed in 
floating point numbers
y2k_compliance  =   Off ; whether to be year 2000 compliant (will cause 
problems with non y2k compliant browsers)
output_buffering= Off   ; Output buffering allows you to send header lines 
(including cookies)
; even after you send body 
content, in the price of slowing PHP's
; output layer a bit.
; You can enable output 
buffering by in runtime by calling the output
; buffering functions, or 
enable output buffering for all files
; by setting this directive to 
On.
output_handler  =   ; You can redirect all of the output of your 
scripts to a function,
; that can be responsible to 
process or log it.  For example,
; if you set the 
output_handler to ob_gzhandler, than output
; will be transparently 
compressed for browsers that support gzip or
; deflate encoding.  Setting 
an output handler automatically turns on
; output buffering.
implicit_flush  = Off   ; Implicit flush tells PHP to tell the output layer to 
flush itself
; automatically after every 
output block.  This is equivalent to
; calling the PHP function 
flush() after each and every call to print()
; or echo() and each and every 
HTML block.
; Turning this option on has 
serious performance implications, and
; is generally recommended for 
debugging purposes only.

[PHP-DEV] Bug #9816 Updated: FATAL: emalloc(): Unable to allocate

2001-05-10 Thread kalowsky

ID: 9816
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

user reports (btw please use the bug system):

*sigh*...Still fails in 4.0.5...thanks just the same. Let me know if there's
anything else I can do...

tested on:

Windows 2000 Server, SP1
PHP4.0.5 CGI
IIS5
Access97, called using odbc_exec

query: SELECT LastName  ', '  FirstName AS pName FROM Borrowers

error: FATAL:  emalloc():  Unable to allocate 2147483599 bytes

Previous Comments:
---

[2001-05-07 21:35:30] [EMAIL PROTECTED]
Please try the recently released 4.0.5 to see if this is
corrected for you.

---

[2001-04-29 22:49:00] [EMAIL PROTECTED]
I got the same error when I tried (in numerous ways) to get the concatenation of two 
fields returned AS a new fieldname:

My example query:

SELECT BorrowerId, [FirstName]  [LastName] AS BName FROM Borrowers

causes:
FATAL: emalloc(): Unable to allocate 2147483599 bytes 

I tried '+', '|', and '' as concatenation operators, tried CONCAT(a, b) -- I had 
heard that there was supposedly an internal odbc function called CONCAT that's 
supposed to be driver independent, though I'm not quite sure how that would work in 
practice -- and I even tried creating an Access Query/View/StoredProcedure called 
BorrowerNames using the query above. When I then issued a SELECT * FROM 
BorrowerNames, I still got the error.

Environment:
Windows 2000 Server, SP1
PHP 4.0.4pl1 (CGI)
Access 97
using odbc_exec() to Access 97 database



---

[2001-04-27 08:32:09] [EMAIL PROTECTED]
Another user commented:

I just have read the bug-report 9816 at php.net and want to answer your email.
 
Yes, the users are right: I had the same problems with FATAL:emalloc() using the same 
odbc-queries to get information out of two ms access tables. The first table only 
contains Customer-ID and pasword, the second contains customer adress and a 
remark-field (data type memo)
 
Tests:
user authentication for login taken from table 1 - OK
hello text for user from table 2 - FATAL:emalloc()
 
Result of Test enviroment - after some nights of installation :-) :
 
1) Win2000, MS Access2000, IIS5 and PHP4.0.4 : FATAL:emalloc()
2) Win2000, MS Access2000 SP1, IIS5 and PHP4.0.4 : FATL:emalloc()
3) Win2000, MS Access2000 SP1, Apache 1.3 and PHP 4.0.4 : FATAL:emalloc()
 
4) Win NT 4, MS Access2000, IIS4 and PHP 4.0.4: OK, no errors
5) Win NT 4, MS Access2000, Apache 1.3 and PHP 4.0.4: OK, no errors
 
The next days I try to debug the source code to find out what the trigger of emalloc() 
realy is.  Our new Webserver should be a Win2000 Server with Apache and PHP.  
Therefore we need to know where the emalloc() error comes from.
 
If you want know our results of debugging please send me an email to 
[EMAIL PROTECTED]

---

[2001-04-16 22:54:23] [EMAIL PROTECTED]
Can someone with access to Windows2000 please test this out and either confirm or deny 
this report?  User reports this won't happen under Win98SE and that is currently all I 
have access to...

---

[2001-04-03 07:50:46] [EMAIL PROTECTED]
I am sorry but I have no coments on you ...
In all versions from 4.0.2 till 4.0.4pl1.
Only in win2000 with srvice pack 1 installed.
Only, not in 95,98,me,nt and win2000 with out service pack 1.
This script 
?
$a=odbc_connect(oh,,);
$r=odbc_prepare($a,SELECT 'a' FROM xx); 
odbc_execute($r);
odbc_free_result($r);
odbc_close($a);
?
where
xx is a table whith 1 integer field and 1 row.
and oh is odbc system dsn for ms access file with only one table (xx). 
I get FATAL: emalloc(): Unable to allocate 2147483599 bytes 


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10784: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread christelle . duarte

From: [EMAIL PROTECTED]
Operating system: UNIX AIX 4.3.3.0
PHP version:  4.0.4pl1
PHP Bug Type: Compile Problem
Bug description:  ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already 
been define

J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?


-- 
Edit Bug report at: http://bugs.php.net/?id=10784edit=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 #10785: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread stefan . marquardt

From: [EMAIL PROTECTED]
Operating system: HP-UX11 (32bit)
PHP version:  4.0.5
PHP Bug Type: Compile Failure
Bug description:  /usr/bin/ld: Unsatisfied symbols: 

If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14





-- 
Edit Bug report at: http://bugs.php.net/?id=10785edit=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 #10786: localhost now fails in mysql_(p)connect

2001-05-10 Thread davidv

From: [EMAIL PROTECTED]
Operating system: Linux SuSE 7.1/Mandrake 7.2
PHP version:  4.0.5
PHP Bug Type: MySQL related
Bug description:  localhost now fails in mysql_(p)connect

Two systems have been upgraded from 4.0.4pl1 to 4.0.5 and both have then failed to 
connect to a MySQL database using 'localhost' in the mysql_connect or mysql_pconnect 
calls. The MySQL installation has not been upgraded. Replacing the libphp4.so with the 
4.0.4pl1 version and restarting apache fixes the problem as does changing 'localhost' 
to '127.0.0.1' (plus a similar mod to mysql db and user tables in the database so that 
the host names match).

The MySQL version is 3.23.32


-- 
Edit Bug report at: http://bugs.php.net/?id=10786edit=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] Location header.

2001-05-10 Thread Johan Vikerskog (ECS)

ok.
I have this problem of mine which i dont know how to solve. therefor i use this great 
mailing list.

Lets say i have a URL that looks something like this.

http://adam:9000//usr/local/test/test.html

and i want to change this with a PHP script to

http://adam.artwork.com:9000//user/local/test/test.html

Anyone got any tips for me on how to do this?
Please help me with this.

//Johan

-- 
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 #10784 Updated: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread derick

ID: 10784
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Please report you bug in the English Language.

Previous Comments:
---

[2001-05-10 08:41:11] [EMAIL PROTECTED]
J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?

---



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


-- 
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 #10785 Updated: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread derick

ID: 10785
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Can you post the last 25 lines before you get that error?
Theses lines show what was used in linking PHP.

Derick

Previous Comments:
---

[2001-05-10 08:43:26] [EMAIL PROTECTED]
If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14




---



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


-- 
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 #10785 Updated: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread hholzgra

ID: 10785
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

AFAIK only the 64bit libraries on HP/UX have
standard dl*() functions in them while the old 32bit
libs have some proprietary HP shared library support 

Previous Comments:
---

[2001-05-10 08:51:18] [EMAIL PROTECTED]
Can you post the last 25 lines before you get that error?
Theses lines show what was used in linking PHP.

Derick

---

[2001-05-10 08:43:26] [EMAIL PROTECTED]
If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14




---



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


-- 
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 #10786 Updated: localhost now fails in mysql_(p)connect

2001-05-10 Thread derick

ID: 10786
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

What is the error message you get?
Can you also try to set: mysql.default_socket to the location where you mysql soscket 
is?
(Probably: /tmp/mysql.sock or /var/lib/mysql.sock).

Previous Comments:
---

[2001-05-10 08:44:13] [EMAIL PROTECTED]
Two systems have been upgraded from 4.0.4pl1 to 4.0.5 and both have then failed to 
connect to a MySQL database using 'localhost' in the mysql_connect or mysql_pconnect 
calls. The MySQL installation has not been upgraded. Replacing the libphp4.so with the 
4.0.4pl1 version and restarting apache fixes the problem as does changing 'localhost' 
to '127.0.0.1' (plus a similar mod to mysql db and user tables in the database so that 
the host names match).

The MySQL version is 3.23.32

---



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


-- 
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 #10734 Updated: Strange conversion string-numbers

2001-05-10 Thread zeev

ID: 10734
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Fixed in the CVS.  Thanks for the report!

Previous Comments:
---

[2001-05-08 11:44:43] [EMAIL PROTECTED]
AFAIR this is some strange magic borrowed from perl

the deeper sense in this is that you can use it
to increment/decrement the numerical part of
serial numbers and such

IMHO this is more confusing then helpfull and
should be nuked 

---

[2001-05-08 11:26:43] [EMAIL PROTECTED]
Here is a simple code

?
header(content-type: text/plain);

$num = -5;
echo $numn;
$num++;
echo $numn;
$num--;
echo $numn;
echo --n;

$num = -5;
echo $numn;
$num++;
echo $numn;
$num--;
echo $numn;
?

And here results

-5
-4
-5
--
-5
-6 -- ?
-7

It looks like ++ operator do not work properly on variables enclosed in 
double-quotes.
Other operators (ie $num = $num +1) woks properly.


---



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


-- 
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 #10744 Updated: session_start() serializes exec

2001-05-10 Thread derick

ID: 10744
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

That is by design (for file based session storage at least).

See http://www.php.net/bugs.php?id=6287edit=1 and
http://bugs.php.net/?id=10675edit=1

All access to session variables in PHP4 is serialized. If you want to
start some daemon from inside your php script make it to close all
unused file handles at startup or close the session before exec().

oleg

Previous Comments:
---

[2001-05-09 04:39:31] [EMAIL PROTECTED]
Try this in a script:
?php
  exec( /bin/sleep 30 /dev/null 21 /dev/null  ) ;
  echo Done !! ;
?

Now call it from the browser several time (Reload button). If you type a ps ax command 
you will see several sleep 30 processes. Wait all the processes to stop.

Now put session_start() as the first line. Press RELOAD: it completes OK. Now press 
RELOAD again: it hangs !!! It waits for the sleep to terminate before starting the 
next !! So if you press RELOAD 10 times you need to wait 300 seconds !!

Is it a normal behaviour ? How can I have a process completely in the background ? 

Francesco
PS: I tried to put the nohup in the exec string with no success 

---



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


-- 
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 #10785 Updated: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread stefan . marquardt

ID: 10785
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating system: HP-UX11 (32bit)
PHP Version: 4.0.5
Description: /usr/bin/ld: Unsatisfied symbols:

I notice while make of PHP very often:

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: t
his is the location of the previous definition  

The requested line will take some time .. slow machine ..



Previous Comments:
---

[2001-05-10 08:52:56] [EMAIL PROTECTED]
AFAIK only the 64bit libraries on HP/UX have
standard dl*() functions in them while the old 32bit
libs have some proprietary HP shared library support 

---

[2001-05-10 08:51:18] [EMAIL PROTECTED]
Can you post the last 25 lines before you get that error?
Theses lines show what was used in linking PHP.

Derick

---

[2001-05-10 08:43:26] [EMAIL PROTECTED]
If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14




---


Full Bug description available at: http://bugs.php.net/?id=10785


-- 
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 #10591 Updated: magic_quotes_runtime being randomly set?

2001-05-10 Thread zeev

ID: 10591
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Status: Critical
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0 Latest CVS (01/05/2001)
Assigned To: 
Comments:

Do you have any settings for magic_quotes_runtime in your httpd.conf or .htaccess 
files?

Previous Comments:
---

[2001-05-09 11:12:01] [EMAIL PROTECTED]
Marked as to be fixed before 4.0.6

---

[2001-05-01 23:07:35] [EMAIL PROTECTED]
Hmmm... maybe we do have a bug here...

There are no calls to magic_quotes_runtime().
There are no includes, requires or auto_(pre|ap)pend_files.
The php.ini files and apache conf files don't set magic_quotes_runtime.
And there are no other scripts on the box that call magic_quotes_runtime() or set_ini 
('magic_quotes_runtime', 'On');

So, right now it does seem that magic_quotes_runtime does to randomly turn on and off.

Calls to get_magic_quotes_runtime() accurately report whether magic_quotes_runtime is 
active, while phpinfo() reports that magic_quotes_runtime is off - both locally and 
the master value.

Initial reports indicated that the bug may have been related to file(), however, the 
problem can be reproduced using fopen() as well - see 
http://airbag.tss.peachnet.edu/~sam/fopen.php and 
http://airbag.tss.peachnet.edu/~sam/fopen.txt.

Anyone have any ideas here - I am coming up blank.


---

[2001-05-01 21:19:23] [EMAIL PROTECTED]
Damn... misread last comment. Have asked user to send me relevant code.  I would guess 
that something simple to fix on here...

---

[2001-05-01 21:05:19] [EMAIL PROTECTED]
Semi-randomly?

There are no odd lines in my php.ini...

I need this to work for my app! :)

---

[2001-05-01 20:54:05] [EMAIL PROTECTED]
The php.ini parser may behave strangely when presented with broken lines, 
semi-randomly turning features on and off.  

IMHO not a giant issue - if I get a chance, I will take a closer look at it.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Liz

On the subject of updating the manual though..

the IMAP, POP and NNTP functions section.. it only contains imap functions. Im
sure this is confusing to people.

 It's just that James's suggestion that we update the installation chapter of
 the manual and generate the installation noted from that is so eminently
 sensible, that it would be foolish to do otherwise - which sadly means that
 the efforts both you and I did earlier will be consigned forever to languish
 in the 'deleted items' folder :)


-- 
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]




Re: [PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Chuck Hagenbuch

Quoting Liz [EMAIL PROTECTED]:

 the IMAP, POP and NNTP functions section.. it only contains imap functions.
 Im sure this is confusing to people.

It's the names of the functions that are wrong, not the name of the section. 
Read the documentation for imap_open() - it'll talk to pop3 and nntp servers 
just fine, and almost all of the functions work with all three.

-chuck

--
Charles Hagenbuch, [EMAIL PROTECTED]
When you can't even start, it's time to stop - Jason

-- 
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 #10784 Updated: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread christelle . duarte

ID: 10784
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Problem
Operating system: UNIX AIX 4.3.3.0
PHP Version: 4.0.4pl1
Description: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been 
define

When I try to build php distribution using the native xlc compiler, it failed with the 
several errors :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
 on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.



Previous Comments:
---

[2001-05-10 08:49:44] [EMAIL PROTECTED]
Please report you bug in the English Language.

---

[2001-05-10 08:41:11] [EMAIL PROTECTED]
J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?

---


Full Bug description available at: http://bugs.php.net/?id=10784


-- 
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 #5084 Updated: imap_mail_compose produces a SigSegv

2001-05-10 Thread sniper

ID: 5084
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: IMAP related
Operating system: 
PHP Version: 4.0 Release Candidate 2
Assigned To: sniper
Comments:

Works nicely for me with 4.0.6-dev. Reopen if problem persist with 4.0.6

--Jani


Previous Comments:
---

[2001-05-03 15:29:00] [EMAIL PROTECTED]
Can you test this with 4.0.6-cvs? It is very likely fixed now.

---

[2000-07-29 23:04:42] [EMAIL PROTECTED]
I made a partial fix to this which is committed into the CVS. But there is still some 
bugs in this. 

For now at least the script below works:

?php

$envelope[from]=[EMAIL PROTECTED];
$envelope[to]=musone@darkstar;
$envelope[cc]=[EMAIL PROTECTED];

$part1[type]=TYPEMULTIPART;
$part1[subtype]=mixed;

$filename=/tmp/imap.c.gz;
$fp=fopen($filename,r);
$contents=fread($fp,filesize($filename));
fclose($fp);
$part2[type]=TYPEAPPLICATION;
$part2[encoding]=ENCBINARY;
$part2[subtype]=octet-stream;
$part2[description]=basename($filename);
$part2[contents.data]=$contents;


$part3[type]=TYPETEXT;
$part3[subtype]=plain;
$part3[description]=description3;
$part3[contents.data]=contents.data3nnnt;

$body[1]=$part1;
$body[2]=$part2;
$body[3]=$part3;
echo nl2br(imap_mail_compose($envelope,$body));

?

I will write some kind of documentation of this soon as possible.

--Jani

---

[2000-07-29 02:49:38] [EMAIL PROTECTED]
IMAP related. 

--Jani

---

[2000-07-29 02:43:54] [EMAIL PROTECTED]
Same as #3337

--Jani

---

[2000-06-16 17:11:06] [EMAIL PROTECTED]
?php

print blabrn;
$env = array(From: [EMAIL PROTECTED]);
$body = array(Part 1);

print imap_mail_compose($env,$body);
?


./configure  --with-apache=../apache_1.3.9 --with-ldap=/opt/ldap
--with-gdbm --with-imap=/opt/apache/apache/src/c-client/imap-4.7b/ --with-zlib 
--enable-sysvshm

gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0, 
return_value_used=1) at php_imap.c:3094
3094bod-nested.part=mail_newbody_part();
(gdb) bt
#0  0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0, 

return_value_used=1) at php_imap.c:3094
#1  0x81038dc in execute (op_array=0x83971d4) at ./zend_execute.c:1574
#2  0x8087fab in php_execute_script (primary_file=0xbbec) at main.c:1200
#3  0x80a2b20 in apache_php_module_main (r=0x837f674, fd=40, display_source_mode=0)
at sapi_apache.c:93
#4  0x80844db in send_php ()
#5  0x808451c in send_parsed_php ()
#6  0x8150263 in ap_invoke_handler ()
#7  0x81639b9 in process_request_internal ()
#8  0x8163a1c in ap_process_request ()
#9  0x815b34e in child_main ()
#10 0x815b4fc in make_child ()
#11 0x815b659 in startup_children ()
#12 0x815bc86 in standalone_main ()
#13 0x815c419 in main ()
#14 0x400f6cb3 in __libc_start_main (main=0x815c0cc main, argc=2, argv=0xbda4, 
init=0x8082928 _init, fini=0x822b90c _fini, rtld_fini=0x4000a350 _dl_fini, 
stack_end=0xbd9c) at ../sysdeps/generic/libc-start.c:78


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #3337 Updated: imap_mail_compose() locks

2001-05-10 Thread sniper

ID: 3337
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: IMAP related
Operating system: 
PHP Version: 4.0 Beta 3
Assigned To: 
Comments:

Should be fixed in CVS.

--Jani


Previous Comments:
---

[2000-11-27 05:59:38] [EMAIL PROTECTED]
Dup of #5084

---

[2000-07-30 00:37:11] [EMAIL PROTECTED]
Please try out the latest CVS now. I made a partial fix
to this but there is some work to do still.

And check out bug #5084 which is duplicate to this. 

--Jani

---

[2000-07-29 02:47:19] [EMAIL PROTECTED]
This is imap related. And reproduceable.

--Jani


---

[2000-07-25 21:49:28] [EMAIL PROTECTED]
this is still not working (and not documented ):

---

[2000-07-25 20:52:38] [EMAIL PROTECTED]
There have been several bug fixes on various imap functions.
Please try installing a new release of PHP.
If the problem occurs again, please submit a new bug report.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-10 Thread Hartmut Holzgraefe

Liz wrote:
 
 On the subject of updating the manual though..
 
 the IMAP, POP and NNTP functions section.. 
 it only contains imap functions.
 Im sure this is confusing to people.

maybe i should move the 2nd paragraph on http://php.net/imap up?

Note that these functions are not limited to the IMAP protocol,
 despite their name. The underlying c-client
 library also supports NNTP, POP3 and local mailbox access methods. 

or should we rename theese functions from imap_* to mailclient_*
and keep the imap_* style as aliases for compatibility?

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

-- 
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 #10784 Updated: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread derick

ID: 10784
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Hello,

this looks like a problem in the bundled mysql client libraries.
You can try the following things:
- Don't use the bundled library and point configure to the already installed libraries 
on your system (if you have them):
./configure --with-mysql=/usr/local
- Please try to build without mysql:
./configure --without-mysql

Can you please try these?

regards,
Derick

Previous Comments:
---

[2001-05-10 09:42:14] [EMAIL PROTECTED]
When I try to build php distribution using the native xlc compiler, it failed with the 
several errors :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
 on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.



---

[2001-05-10 08:49:44] [EMAIL PROTECTED]
Please report you bug in the English Language.

---

[2001-05-10 08:41:11] [EMAIL PROTECTED]
J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?

---



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


-- 
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 #10784 Updated: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread derick

ID: 10784
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

status: feedback

Previous Comments:
---

[2001-05-10 09:47:23] [EMAIL PROTECTED]
Hello,

this looks like a problem in the bundled mysql client libraries.
You can try the following things:
- Don't use the bundled library and point configure to the already installed libraries 
on your system (if you have them):
./configure --with-mysql=/usr/local
- Please try to build without mysql:
./configure --without-mysql

Can you please try these?

regards,
Derick

---

[2001-05-10 09:42:14] [EMAIL PROTECTED]
When I try to build php distribution using the native xlc compiler, it failed with the 
several errors :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
 on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.



---

[2001-05-10 08:49:44] [EMAIL PROTECTED]
Please report you bug in the English Language.

---

[2001-05-10 08:41:11] [EMAIL PROTECTED]
J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?

---



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


-- 
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 #10787 Updated: mod_perl and php4 - Segmentation fault

2001-05-10 Thread derick

ID: 10787
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Hello,

can you post a backtrace of this crash?

Derick

Previous Comments:
---

[2001-05-10 09:47:31] [EMAIL PROTECTED]
I have no chance to get php4.0.5 working with mod_perl (1.25). Some Child Processes 
are Segfaulting... I even tried to run 2 apache servers: one only with php and one 
with mod_perl and connect them with a ProxyPass... The apache processes with php are 
still crashing! I also tried every combination of dso and compiled in modules... 
Nothing helped.

PHP4.0.5 was working fine until I tried to use mod_perl...

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-xml --with-dom --with-gd 
--with-ttf --with-smtp --with-imap=/usr/local/src/imap-4.7 --enable-track-vars 
--enable-force-cgi-redirect --with-gettext --with-pgsql --with-mysql=/usr

---



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


-- 
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 #10788: c-client linked to config test progs causes undefined symbols

2001-05-10 Thread wez

From: [EMAIL PROTECTED]
Operating system: SuSE 7.0 i386
PHP version:  4.0 Latest CVS (2001-05-10)
PHP Bug Type: *Install and Config
Bug description:  c-client linked to config test progs causes undefined symbols

The conftest progs for things like setuid fail because c-client expects to find 
mm-expunged, mm_diskerror etc. etc.

Probably related to current build issues, but not enough of an autoconf guru to figure 
it out.

./configure \
--with-apxs \
--disable-pear \
--enable-debug \
--enable-sigchild \
--enable-calendar \
--enable-ftp \
--with-ldap \
--with-mysql=/usr \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--with-zlib \
--enable-inline-optimization \
--with-iconv \
--with-bz2 \
--enable-wddx \
--with-openssl \
--enable-bcmath \
--enable-ctype \
--with-imap \
--with-pspell \
--enable-yp \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-gd \
--with-mhash \
--enable-mailparse \
--enable-jstring \
--with-cybercash=/usr/local/mck-3.2.0.3-linux \
--enable-php-streams \
--enable-mbregex \
--enable-memory-usage \
--with-mm \
$@




-- 
Edit Bug report at: http://bugs.php.net/?id=10788edit=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 #10789: LDAP and OCI8 support don't work together

2001-05-10 Thread horakm

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.17
PHP version:  4.0.5
PHP Bug Type: LDAP related
Bug description:  LDAP and OCI8 support don't work together

I have problem with running together LDAP and OCI8 support in PHP. Functions 
ldap_add() and ldap_modify() causes apache proces to generate segmentation fault.

Here is my configure line:

ORACLE_HOME=/usr/local/oraclient/8.1.6 \
./configure \
  --with-mysql=shared,/usr \
  --with-dbase \
  --enable-sysvshm --enable-sysvsem \
  --with-config-file-path=/etc/httpd \
  --with-gdbm=/usr \
  --disable-debug \
  --with-oci8=shared \
  --with-gd=shared \
--with-ttf \
--with-jpeg-dir \
  --with-ldap=shared \
  --with-imap=shared \
--with-kerberos \
  --with-apxs=/usr/local/apache/bin/apxs

I built all modules as shared. Here is a part of my php.ini

extension=gd.so
extension=imap.so
extension=mysql.so
extension=ldap.so
extension=oci8.so

oci8 works fine, ldap_add() and ldap_modify() crash.
If I comment out extension oci8.so, ldap works also fine.

I added --enable-versioning to configure line and if I tried to start Apache server, 
it exited with message in the log:
[notice] caught SIGTERM, shutting down

I found a workaround - comment out extension=oci8.so in the php.ini file, start 
Apache, uncomment the line and do apachectl restart.
Then everything works.

I'm sorry I didn't attach any backtrace, but I wasn't able to get any.


-- 
Edit Bug report at: http://bugs.php.net/?id=10789edit=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 #7822 Updated: system crash

2001-05-10 Thread zeev

ID: 7822
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Closed
Bug Type: Apache related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

Fixed in the CVS.  Thanks for the report!

Previous Comments:
---

[2001-05-09 11:22:56] [EMAIL PROTECTED]
System security bugs are quite critical.
This has to be addressed before 4.0.6

--Jani


---

[2001-05-07 12:52:28] [EMAIL PROTECTED]
I guess the point is to prevent malicious users from crashing the server.

---

[2001-05-07 12:35:23] [EMAIL PROTECTED]
I don't see the point in accessing http://localhost/php/php.exe. So, why do you want 
to do that?


---

[2001-05-04 03:41:23] [EMAIL PROTECTED]
Now I use Apache/1.3.19 with PHP/4.0.5 for Windows 98
this problem still exists.

Default setting will make system crash in Windows 98 if accessing something like

http://localhost/php/php.exe

I guess PHP at least should announce this problem (and I've made two of my friends 
crashed, sorry if they see this.).

---

[2001-01-12 12:27:08] [EMAIL PROTECTED]
cynic: This is a Great Idea!

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10785 Updated: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread stefan . marquardt

ID: 10785
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: HP-UX11 (32bit)
PHP Version: 4.0.5
Description: /usr/bin/ld: Unsatisfied symbols:

Hi agaim,
now i could compile it.
I forgot to erase config.cache to reproduce the same error.
If i got the mail to post more lines a breaked a new try with following changes (i 
restart it only with make clean and
configure)

./main/php_config.h
between config and make changed:

uncomment #undef HAVE_LIBDL

I will reproduce the error until erasing config.cache tommorow (very slow workstation)


Previous Comments:
---

[2001-05-10 09:20:37] [EMAIL PROTECTED]
I notice while make of PHP very often:

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: t
his is the location of the previous definition  

The requested line will take some time .. slow machine ..



---

[2001-05-10 08:52:56] [EMAIL PROTECTED]
AFAIK only the 64bit libraries on HP/UX have
standard dl*() functions in them while the old 32bit
libs have some proprietary HP shared library support 

---

[2001-05-10 08:51:18] [EMAIL PROTECTED]
Can you post the last 25 lines before you get that error?
Theses lines show what was used in linking PHP.

Derick

---

[2001-05-10 08:43:26] [EMAIL PROTECTED]
If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14




---


Full Bug description available at: http://bugs.php.net/?id=10785


-- 
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 #10575 Updated: installation of 4.0.5 as apxs module broke xbithack apache option

2001-05-10 Thread duvenhorst

ID: 10575
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Apache related
Operating system: Linux 2.2.4
PHP Version: 4.0.5
Description: installation of 4.0.5 as apxs module broke xbithack apache option

Yes. It works. I have downgraded.



Previous Comments:
---

[2001-05-10 05:05:15] [EMAIL PROTECTED]
Did it work with 4.0.4pl1?

--Jani


---

[2001-05-01 06:59:48] [EMAIL PROTECTED]
installation of 4.0.5 as apxs module broke xbithack apache 
option



---


Full Bug description available at: http://bugs.php.net/?id=10575


-- 
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 #10785 Updated: /usr/bin/ld: Unsatisfied symbols:

2001-05-10 Thread derick

ID: 10785
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Ok, that's nice. I'll leave this bug in the feedback state for that time.

Previous Comments:
---

[2001-05-10 10:23:23] [EMAIL PROTECTED]
Hi agaim,
now i could compile it.
I forgot to erase config.cache to reproduce the same error.
If i got the mail to post more lines a breaked a new try with following changes (i 
restart it only with make clean and
configure)

./main/php_config.h
between config and make changed:

uncomment #undef HAVE_LIBDL

I will reproduce the error until erasing config.cache tommorow (very slow workstation)


---

[2001-05-10 09:20:37] [EMAIL PROTECTED]
I notice while make of PHP very often:

/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: t
his is the location of the previous definition  

The requested line will take some time .. slow machine ..



---

[2001-05-10 08:52:56] [EMAIL PROTECTED]
AFAIK only the 64bit libraries on HP/UX have
standard dl*() functions in them while the old 32bit
libs have some proprietary HP shared library support 

---

[2001-05-10 08:51:18] [EMAIL PROTECTED]
Can you post the last 25 lines before you get that error?
Theses lines show what was used in linking PHP.

Derick

---

[2001-05-10 08:43:26] [EMAIL PROTECTED]
If i compile (gcc 2.95.3) apache 1.3.14 with PHP module i get this:
/usr/bin/ld: Unsatisfied symbols:   
   dlclose (code)   
   dlopen (code)
   dlerror (code)   
   dlsym (code) 
collect2: ld returned 1 exit status 

/usr/lib/libdl.sl exists.

If i do the same on HP-UX11 (64bit) with HP C++ compiler
it works without errors.

commands:
./configure --without-mysql --with-apache=../apache_1.3.14




---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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] CVS Account Request

2001-05-10 Thread CVS Account Request

Full name: damien Seguy
Email: [EMAIL PROTECTED]
ID: dams
Purpose: reset password

-- 
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]




Re: AW: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-10 Thread Harald Radi



Sterling Hughes [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
 On Thu, 10 May 2001, Jani Taskinen wrote:

  On Wed, 9 May 2001, Sterling Hughes wrote:
 
  On Thu, 10 May 2001, Jani Taskinen wrote:
   This is just because some developers don't like to follow the
guidelines.
   As, I quote, it woulnd't be fun anymore or you can't force
anyone.
  
  Hrrmmm.. Which guidelines would those be?  And no, you can't force
anyone,
 
  This one.. (from CODING_STANDARDS):
 
  8---
  Naming Conventions
  --
 
  [1] Function names for user-level functions should be enclosed with in
  the PHP_FUNCTION() macro. They should be in lowercase, with words
  8---


yea, but i wasn't talking about functions, i was talking about classes (in
particular
the com, dotnet and variant class). i couldn't find a guidline how to name
classes,
attributes or methods.

there is even no guidline in the PEAR CODING_STANDARDS file, but they use a
more c++ like
convention:

CLASS-lowerUpperUpper();

should this be adopted to have an uniform convetion ? any other ideas ?

and at least, how should they be documented in the php documentation (i
posted a mail 2 days
ago, but without response) ? afaik there is only a function/function
tag, but no
class/class, member/member, method/method,
constructor/constructor, etc. tags.

any suggestions ?

 
  And yes, you can force anyone. If they don't follow the guidelines set,
  their CVS access can as easily be taken from them as it was given..
  This is same as if someone intentionally breaks some parts of the code.
 
i didn't want to blame someone, the reason i asked was, that the com
extension
was originaly done by zeev, so i thought there was a reason for the naming.



-- 
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 #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-05-10 Thread hellmarch

ID: 9666
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: *Graphics related
Operating system: Linux
PHP Version: 4.0.3pl1
Description: Can't display image/pjpeg and image/gif in one sanme page

$data = addslashes(fread(fopen($image, r), filesize($image)));

Previous Comments:
---

[2001-05-10 05:55:45] [EMAIL PROTECTED]
No feedback. If problem exists with PHP 4.0.5, reopen.



---

[2001-04-19 09:55:02] [EMAIL PROTECTED]
Could you please add script into this report that you use to
ADD the images into the database? And please make it short
one. 

--Jani


---

[2001-03-11 20:36:44] [EMAIL PROTECTED]
Yes,I use addslashes on the binary data.Didn't need to use this function?

---

[2001-03-11 05:35:11] [EMAIL PROTECTED]
If you inserted this with PHP also, did you use addslashes
on the binary data? IIRC that's required, or mysql 'll be kinda messy with the data..

-- Mathieu

---

[2001-03-11 00:04:12] [EMAIL PROTECTED]
Sorry,this page is not on web,it's on my intranet.I am a Chinese,I am not good at 
english.I mean one of the two types will not display on the first time that the page 
load,Must refresh can display togather.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=9666


-- 
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 #10787 Updated: mod_perl and php4 - Segmentation fault

2001-05-10 Thread derick

ID: 10787
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Hello,

that answer made little sense to me. Can you explain it a litte more?
Please also include the output of ldd httpd (where httpd is your new apache 
executable).

regards,
Derick

Previous Comments:
---

[2001-05-10 10:33:38] [EMAIL PROTECTED]
Sorry, I didn't get it, cause the httpd with -X is getting to slow... 

---

[2001-05-10 09:50:32] [EMAIL PROTECTED]
Status: feedback (again)

---

[2001-05-10 09:49:37] [EMAIL PROTECTED]
Hello,

can you post a backtrace of this crash?

Derick

---

[2001-05-10 09:47:31] [EMAIL PROTECTED]
I have no chance to get php4.0.5 working with mod_perl (1.25). Some Child Processes 
are Segfaulting... I even tried to run 2 apache servers: one only with php and one 
with mod_perl and connect them with a ProxyPass... The apache processes with php are 
still crashing! I also tried every combination of dso and compiled in modules... 
Nothing helped.

PHP4.0.5 was working fine until I tried to use mod_perl...

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-xml --with-dom --with-gd 
--with-ttf --with-smtp --with-imap=/usr/local/src/imap-4.7 --enable-track-vars 
--enable-force-cgi-redirect --with-gettext --with-pgsql --with-mysql=/usr

---



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


-- 
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] Re: Bug #10774 Updated: SWF complill error

2001-05-10 Thread webmaster

Thank you for the reply. Unfortunately the readme file in ming says it does
not support sound. However www.openswf.org has a lot of info available for
swf. I will write you if I in regards to my success or failure with info I
find at www.openswf.org
- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 1:48 AM
Subject: Bug #10774 Updated: SWF complill error


 ID: 10774
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: SWF related
 Operating system:
 PHP Version: 4.0.4pl1
 Assigned To:
 Comments:

 Use MING instead. It's much better and it's been still
 developed. It seems like the libswf is pretty much dead project..last
updates on that site are done 1999!

 http://www.opaque.net/ming/

 --Jani


 Previous Comments:
 --
-

 [2001-05-09 23:59:18] [EMAIL PROTECTED]
 I have attempted to compille php 4.0.4pl1 and 4.0.5 using files that I
downloaded from http://reality.sgi.com/grafica/flash/; and with the
follwing cofigure lines --with-swf-/usr/local/dist/bin
 my problem is that the swf.h and libswf.a file are not included in the
download available from the above location. I have also tried using the the
swf.h file available from the above site but I recieve coinfigure errors
stating: swf should be in directory /include and libswf.a should be in
directory /lib.

 All of the files do not come with the downloaded file, the text file that
I copied from the site still gives me errors and the documentation from the
above site is very poor. Can you please tell me in plain english how to
configure PHP with FLASH/SHOCKWAVE features.

 Eric

 --
-



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




-- 
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 #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-05-10 Thread derick

ID: 9666
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Graphics related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Please include your whole script AND the images you have problems with.

regards,
Derick

Previous Comments:
---

[2001-05-10 10:43:18] [EMAIL PROTECTED]
$data = addslashes(fread(fopen($image, r), filesize($image)));

---

[2001-05-10 05:55:45] [EMAIL PROTECTED]
No feedback. If problem exists with PHP 4.0.5, reopen.



---

[2001-04-19 09:55:02] [EMAIL PROTECTED]
Could you please add script into this report that you use to
ADD the images into the database? And please make it short
one. 

--Jani


---

[2001-03-11 20:36:44] [EMAIL PROTECTED]
Yes,I use addslashes on the binary data.Didn't need to use this function?

---

[2001-03-11 05:35:11] [EMAIL PROTECTED]
If you inserted this with PHP also, did you use addslashes
on the binary data? IIRC that's required, or mysql 'll be kinda messy with the data..

-- Mathieu

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #9666 Updated: Can't display image/pjpeg and image/gif in one sanme page

2001-05-10 Thread sniper

ID: 9666
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: *Graphics related
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

And is this with PHP 4.0.5 ?



Previous Comments:
---

[2001-05-10 10:52:53] [EMAIL PROTECTED]
Please include your whole script AND the images you have problems with.

regards,
Derick

---

[2001-05-10 10:43:18] [EMAIL PROTECTED]
$data = addslashes(fread(fopen($image, r), filesize($image)));

---

[2001-05-10 05:55:45] [EMAIL PROTECTED]
No feedback. If problem exists with PHP 4.0.5, reopen.



---

[2001-04-19 09:55:02] [EMAIL PROTECTED]
Could you please add script into this report that you use to
ADD the images into the database? And please make it short
one. 

--Jani


---

[2001-03-11 20:36:44] [EMAIL PROTECTED]
Yes,I use addslashes on the binary data.Didn't need to use this function?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
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 #10784 Updated: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been define

2001-05-10 Thread christelle . duarte

ID: 10784
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Problem
Operating system: UNIX AIX 4.3.3.0
PHP Version: 4.0.4pl1
Description: ./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been 
define

I try with the command ./configure --without-mysql . It's OK but I have always a 
problem when I want to compile Apache whith the php4's module .

./configure --activate-module=src/modules/php4/libmodphp4.a 
--prefix=/apache/apache_1.3.12

Error message : 
=== src/modules/php4
cc -c  -I../../os/unix -I../../include   -DAIX=43 -U__STR__ -DAIX_BIND_c
mod_php4.c, line 28.10: 1506-296 (S) #include file zend.h not found.
mod_php4.c, line 29.10: 1506-296 (S) #include file php.h not found.
mod_php4.c, line 30.10: 1506-296 (S) #include file php_variables.h not foun.
mod_php4.c, line 47.10: 1506-296 (S) #include file php_ini.h not found.
mod_php4.c, line 48.10: 1506-296 (S) #include file php_globals.h not found.
mod_php4.c, line 49.10: 1506-296 (S) #include file SAPI.h not found.
mod_php4.c, line 50.10: 1506-296 (S) #include file php_main.h not found.
mod_php4.c, line 52.10: 1506-296 (S) #include file zend_compile.h not found.
mod_php4.c, line 53.10: 1506-296 (S) #include file zend_execute.h not found.
mod_php4.c, line 54.10: 1506-296 (S) #include file zend_highlight.h not fou.
mod_php4.c, line 55.10: 1506-296 (S) #include file zend_indent.h not found.
mod_php4.c, line 57.10: 1506-296 (S) #include file ext/standard/php_standard.
mod_php4.h, line 36.8: 1506-166 (S) Definition of function zend_module_entry .
mod_php4.h, line 36.26: 1506-276 (S) Syntax error: possible missing '{'?
mod_php4.c, line 112.3: 1506-273 (E) Missing type in declaration of php_per_d.
mod_php4.c, line 120.9: 1506-045 (S) Undeclared identifier saved_umask.
mod_php4.c, line 130.16: 1506-045 (S) Undeclared identifier server_context.
mod_php4.c, line 155.58: 1506-275 (S) Unexpected text SLS_DC encountered.


Previous Comments:
---

[2001-05-10 09:47:52] [EMAIL PROTECTED]
status: feedback

---

[2001-05-10 09:47:23] [EMAIL PROTECTED]
Hello,

this looks like a problem in the bundled mysql client libraries.
You can try the following things:
- Don't use the bundled library and point configure to the already installed libraries 
on your system (if you have them):
./configure --with-mysql=/usr/local
- Please try to build without mysql:
./configure --without-mysql

Can you please try these?

regards,
Derick

---

[2001-05-10 09:42:14] [EMAIL PROTECTED]
When I try to build php distribution using the native xlc compiler, it failed with the 
several errors :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
 on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.



---

[2001-05-10 08:49:44] [EMAIL PROTECTED]
Please report you bug in the English Language.

---

[2001-05-10 08:41:11] [EMAIL PROTECTED]
J'ai un problème de compilation de php sur un serveur unix (AIX 4.3.3.0) . J'ai 
installé le serveur apache 1.3.12 . j'ai configuré php avec apache et oracle 8.1.6. 
Lorsque je lance le make j'ai le message d'erreur suivant :

./global.h, line 525.17: 1506-334 (S) Identifier int8 has already been defined
on line 622 of /usr/include/sys/inttypes.h.
libmysql.c, line 179.59: 1506-280 (W) Function argument assignment between typ
es unsigned long* and int* is not allowed.
make : 1254-004 Code d'erreur de la dernière commande : 1.

La commande ne m'installe pas le module PHP4 sous /src/modules
je ne peux dons pas reconfigurer apache avec php4 

Que faire ?

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=10784


-- 
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 #10790: Cannot redeclare function/class from included file

2001-05-10 Thread christian . huff

From: [EMAIL PROTECTED]
Operating system: Win2k,IIS5
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  Cannot redeclare function/class from included file

Now this is what happens: I include a .php-file for database access via ODBC. While I 
was trying to make things 'easier', I stumbled across a problem: Classes and functions 
declared in an included file seem to work at first glance, but when reloaded, the 
declaration fails: 

Fatal error: Cannot redeclare class odbc_obj in E:\Web-Projekte\Test\odbc.php on line 5

If I move the declaration of the class into the index.php, the script complains about 
being unable to redeclare connexecute(). Reloading again after the error, the script 
works, but thereafter, it refuses again and so on and on.


--- odbc.php ---

$conn_id = odbc_pconnect (TEST, , );
global $conn_id;

class odbc_obj {
var $result;
  
function set_rs ($res) {
$this-result = $res;
}

function out ($eingabe) {
$retval = odbc_result($this-result,$eingabe);
return $retval;
}
}

function ConnExecute($sql)
{
  global $conn_id,$did;
  $did = odbc_exec ($conn_id, $sql);

  $retval = new odbc_obj;
  $retval-set_rs ($did);
  return $retval;
}

--- index.php ---
include(odbc.php);

$sql = some sql query string;
$rs = ConnExecute($sql);



-- 
Edit Bug report at: http://bugs.php.net/?id=10790edit=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]




Re: [PHP-DEV] unbuffered mysql_db_query for 4.0.6?

2001-05-10 Thread Andi Gutmans

At 07:29 AM 5/10/2001 +0200, Jani Taskinen wrote:
On Thu, 10 May 2001, Andi Gutmans wrote:

 At 04:03 PM 5/9/2001 -0400, Jon Parise wrote:
 On Wed, May 09, 2001 at 08:28:55PM +0200, Jani Taskinen wrote:
 
   Remove. Actually..should that mysql_db_query() be deprecated too?
   Starting 4.0.6 with warning?
 
 That sounds like a good move to me (provided it's just a warning
 for now).  It probably shouldn't be completely removed until 4.1.
 
 I'd save the warning for 4.1.

Really? And can you please give any reasons? And some reasoning
for all these other stupid things that are dragged along from version
to version and not started to be depreciated (with a warning..) ?

Because a 0.0.1 version is a minor version and I don't think it is 
appropriate to change this kind of behavior in a minor version.
There are things I would like to have changed too but I don't feel an x.x.1 
version is the right time to do that.
It's just my personal opinion. I respect yours too.
Andi


The crap about breaking someone's scripts is not any good
reason. If people don't bother to read NEWS files, it's their own
fault if their scripts break, IMNSHO. I'd like to see the 'break soon'
movement to get stronger among the core developers. As there really
are no alternatives for doing this. If you do it slowly, it will hurt
more than if it's done very quickly. Like pulling a tooth..

Bloating a language with dozens of 'backwards compatibility
aliases', with functions which are not supposed to be used anymore, etc.
is worse thing than maybe breaking someone's scripts. There
are a lot of people out there who are starting to use PHP at this very
moment. If these depreciated things are not removed soon, the removing of
them will bite more and more people when (if never?) it's done.

And saying here that the new users don't know about these..well, go
and read some of those PHP tutorials out there..many of them were written
before PHP 4 was even released. As also many books.
There are lot of code snippets to be downloaded out there which might
also contain these depreciated aliases/functions/language constructs.

--Jani

p.s. Why it has to be always me who rants? Anyway, I will keep ranting
until something is really DONE..and not just talked about..even
if I start sounding like a broken record.


-- 
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 #10791: CPU overloaded by PHPd

2001-05-10 Thread lordwo

From: [EMAIL PROTECTED]
Operating system: Windows 2000 SP1
PHP version:  4.0.4
PHP Bug Type: Performance problem
Bug description:  CPU overloaded by PHPd

PHPd is running with Apache on a Windows 2000 SP1 FRENCH.
PHPd sometimes takes 99% of the CPU ressources (according to task manager), under 
unknown circumpstances.
PHPd can launch a lot of threads who ates ressources like this, but i can't kill the 
threads, and i have to reboot.

Perhaps it occurs when a mysql connection have a problem (i only use vBulletin , and 
it works a much with mySQL  i noticed that one of the site that i'm hosting has 
permanant SQL errors with their board, that is possibly the cause of this).

If you have any question or if you want any additionnal informations, you can mail me 
at [EMAIL PROTECTED]

[ Scuse me for my bad english, i'm french and i havent a good english :) ]

E. Bleton [aka LordWo]


-- 
Edit Bug report at: http://bugs.php.net/?id=10791edit=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 #10791 Updated: CPU overloaded by PHPd

2001-05-10 Thread derick

ID: 10791
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Performance problem
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

Does this happen with 4.0.5 too?

regards,
Derick

Previous Comments:
---

[2001-05-10 11:10:05] [EMAIL PROTECTED]
PHPd is running with Apache on a Windows 2000 SP1 FRENCH.
PHPd sometimes takes 99% of the CPU ressources (according to task manager), under 
unknown circumpstances.
PHPd can launch a lot of threads who ates ressources like this, but i can't kill the 
threads, and i have to reboot.

Perhaps it occurs when a mysql connection have a problem (i only use vBulletin , and 
it works a much with mySQL  i noticed that one of the site that i'm hosting has 
permanant SQL errors with their board, that is possibly the cause of this).

If you have any question or if you want any additionnal informations, you can mail me 
at [EMAIL PROTECTED]

[ Scuse me for my bad english, i'm french and i havent a good english :) ]

E. Bleton [aka LordWo]

---



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


-- 
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] How to access a file in a protected Directory

2001-05-10 Thread Jürgen Schneider

Hi All,

I like to access a cgi script in a protected Directory on a different Server
via SSL.
The Problem is:
I need to modify the result page of the cgi-script in my PHP Script.
How can I set the username, and the password, to access the protected file??

Thanks a lot



-- 
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]




  1   2   >