php-general Digest 9 Sep 2005 22:50:50 -0000 Issue 3673

Topics (messages 222074 through 222100):

Installing APD
        222074 by: Amir Mohammad Saied
        222075 by: R, Rajesh (STSD)

Is php 5.0.4 using isapi unreliable?
        222076 by: Ben Duffy
        222085 by: Nathan Tobik

IS the list broken, or have I botched up somehow?
        222077 by: Jay Blanchard
        222078 by: Kevin Waterson

ASP (VBScript) to PHP Converters?
        222079 by: Jay Blanchard
        222081 by: George Pitcher
        222082 by: Gustav Wiberg
        222083 by: Nathan Tobik

session.gc_maxlifetime
        222080 by: Gustav Wiberg
        222093 by: Shaw, Chris - Accenture
        222094 by: Kirk.Johnson.zootweb.com

STDERR not opened with php 5.0.5
        222084 by: Florent Monnier

Error Handling
        222086 by: Chuck Brockman
        222090 by: Matthew Weier O'Phinney
        222096 by: Pablo M. Rivas

Re: How large string in cookie?
        222087 by: Dan Baker
        222089 by: Brent Baisley

Encrypt Files
        222088 by: Shaun

Re: PHP wiki recommendations
        222091 by: Murray . PlanetThoughtful

Re: installing php5 on apache2 as a module (on win xp)
        222092 by: Mardy

[SHAMELESS PLUG] Hurricane Relief Initiative
        222095 by: Marco Tabini

Re: Parsing MS-WORD docs
        222097 by: Rory Browne

Change the order in which Objects are unloaded
        222098 by: Niels Ganser
        222100 by: Jasper Bryant-Greene

Re: OCI8 1.1 announce
        222099 by: Manuel Lemos

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi there!

I'm trying to upgrade my APD from 0.4p2 to 0.9.2, but when pear want to install it, i get the error that "phpize" command not found, i have installed the php4-dev package in my Ubuntu 5.0.4,
I'm on PHP 4.3.10, Apache 2.0 and my PEAR version is 1.3.2.

Even any link will be a lot helpful...

--- End Message ---
--- Begin Message ---
Hello Every1,

I just joined this list.
Wanted to know abt the configure.in file..

Can any1 tell me where to look for in configure.in
to find out how to change the code generated for "domxml"
library includes.

Thanks.

--
Rajesh R

-----Original Message-----
From: Amir Mohammad Saied [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 3:24 PM
To: [email protected]
Subject: [PHP] Installing APD

Hi there!

I'm trying to upgrade my APD from 0.4p2 to 0.9.2, but when pear want to
install it, i get the error that "phpize" command not found, i have
installed the php4-dev package in my Ubuntu 5.0.4, I'm on PHP 4.3.10,
Apache 2.0 and my PEAR version is 1.3.2.

Even any link will be a lot helpful...

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi,

We have a Windows 2003 server that seemed reliable using php as a cgi, then
due to placing authentication on directories, we needed to switch to the
isapi method about three months ago. The server reboots randomly maybe five
times per week, but never outside office hours.  I have read articles
suggesting the isapi module is unreliable, is this still the case with php
5?

Thanks.

--- End Message ---
--- Begin Message ---
We never had any luck with PHP 5 and IIS, we downgraded to 4.  PHP 5
would crash on us randomly like you said.  I have not tried 5 in a few
months so I'm not sure if it's been fixed.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-----Original Message-----
From: Ben Duffy [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 6:11 AM
To: [email protected]
Subject: [PHP] Is php 5.0.4 using isapi unreliable?

Hi,

We have a Windows 2003 server that seemed reliable using php as a cgi,
then
due to placing authentication on directories, we needed to switch to the
isapi method about three months ago. The server reboots randomly maybe
five
times per week, but never outside office hours.  I have read articles
suggesting the isapi module is unreliable, is this still the case with
php
5?

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I haven't seen a message for a week, since I changed jobs and e-mail
addresses. I got a subscription confirmation. Can someone reply off-list to
let me know if they have seen this? THanks!

--- End Message ---
--- Begin Message ---
This one time, at band camp, Jay Blanchard <[EMAIL PROTECTED]> wrote:

> I haven't seen a message for a week, since I changed jobs and e-mail
> addresses. I got a subscription confirmation. Can someone reply off-list to
> let me know if they have seen this? THanks!
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Seems to be working

Kevin
-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---
--- Begin Message ---
Howdy!

I have started searching around for VBScript to PHP converters and was
hoping that the group might have some recommendations. My new position
places me squarely into the middle of a Windows shop and one of the reasons
that they wanted me here was to help them take the steps to the next levels.
The first steps that I want to take with them are moving away from ASP, .NET
and IIS to PHP, C++ and Apache. We have a pretty robust MS-SQL Server
replication system, but I will introduce them to MySQL & PostGres for
certain projects.

I know that ASP to PHP converters aren't perfect, and a lot of the existing
code was generated with Dreamweaver which has introduced some bloat. I feel
that if we can get part way there that the rest can be cleaned up reasonably
easily. I look forward to hearing suggestions.

TVMIA!

--- End Message ---
--- Begin Message ---
Jay,

> I have started searching around for VBScript to PHP converters and was
> hoping that the group might have some recommendations. My new position
> places me squarely into the middle of a Windows shop and one of
> the reasons
> that they wanted me here was to help them take the steps to the
> next levels.

This reminds me of an old joke from The FileMaker list: 'The box said:
"works with Windows 97 or better", so I bought a Mac'.

> the existing
> code was generated with Dreamweaver which has introduced some
> bloat. I feel

As a Dreamweaver user, I'd have to say that poor use of DW (staying in the
'Design' window) will certainly lead to bloat.

As for your actual question, sorry never been near VB.

Cheers

George

--- End Message ---
--- Begin Message --- ----- Original Message ----- From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "PHP General (E-mail)" <[email protected]>
Sent: Friday, September 09, 2005 3:33 PM
Subject: [PHP] ASP (VBScript) to PHP Converters?


Howdy!

I have started searching around for VBScript to PHP converters and was
hoping that the group might have some recommendations. My new position
places me squarely into the middle of a Windows shop and one of the reasons that they wanted me here was to help them take the steps to the next levels. The first steps that I want to take with them are moving away from ASP, .NET
and IIS to PHP, C++ and Apache. We have a pretty robust MS-SQL Server
replication system, but I will introduce them to MySQL & PostGres for
certain projects.

I know that ASP to PHP converters aren't perfect, and a lot of the existing code was generated with Dreamweaver which has introduced some bloat. I feel that if we can get part way there that the rest can be cleaned up reasonably
easily. I look forward to hearing suggestions.

TVMIA!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/93 - Release Date: 2005-09-08


Hi there!

I've been programming in both VBScript and PHP and there's som similarities, but a lot of differences.
From which version to PHP are you converting to? I guess if you're
converting to PHP5, it would be easier to check the code in VBScript and convert manually, then looking for a "converter"

If it is PHP4 (without classes), then maybe there is some simple converter out there. I've never tried on though...

/G
http://www.varupiraten.se/

--- End Message ---
--- Begin Message ---
We have a few apps which were written in ASP (VBScript) that we needed
to port to PHP.  For a few pages I went through and converted everything
ex:

<%if a = 10 then%>
to
<? If (a == 10)?>
line by line..

After finishing a page or two like that I realized that was not the best
way.  The problem with using a converter or porting straight over was
that you are not able to leverage a lot of the PHP specific
functionality that ASP might not have had.  The other problem is there
are a lot of times where the best way to do something in ASP is not the
best way to do it in PHP.  I would recommend taking a look at the pages
and seeing if you can rewrite it in PHP, take all the logic and all the
presentation code from the previous pages, but put new PHP code to that
instead of trying to port.  Porting is possible, but trust me you'll rip
your hair out in the process.  

We use PHP with SQL Server and it works great, there are many features
missing in MySQL that we consider essential with SQL Server.  Not to get
into DB holy wars but are you trying to switch them to MySQL just
because it's open source, or is there another driving factor for the
switch (i.e. mysql does something sql server doesn't?).  Now that I've
said that, we also use PostgreSQL and that can do nearly everything SQL
Server except it's missing an awesome GUI front end like Enterprise
Manager.  People knock SQL Server for being a Microsoft product, but I
have yet to see a DB app that works as well as Enterprise Manager.  Even
tools for Oracle pale in comparison.

Nate Tobik
(412)661-5700 x206
VigilantMinds

--- End Message ---
--- Begin Message ---
Hi there!

This setting...
session.gc_maxlifetime can only be set in php.ini
Default = 1440 = 24 minutes
is the time before a cookie expires? Is this right?

I don't have access to php.ini because it's not my server (it's my webhost)
What's the solution to that? I want the cookie to last as long as set inte setcookie...

Please help... I'm a little confused here...

/G
http://www.varupiraten.se/

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
> Sent: 09 September 2005 14:40
> To: PHP General
> Subject: [PHP] session.gc_maxlifetime

>

>

> *************************************
>

> This e-mail has been received by the Revenue Internet e-mail service.
>

> *************************************
>

> Hi there!
>

> This setting...
> session.gc_maxlifetime can only be set in php.ini
> Default = 1440 = 24 minutes
> is the time before a cookie expires? Is this right?
>

> I don't have access to php.ini because it's not my server

> (it's my webhost)
> What's the solution to that? I want the cookie to last as

> long as set inte

> setcookie...
>

> Please help... I'm a little confused here...

Surely it is:

session.cookie_lifetime: specifies the lifetime of the cookie in seconds
which is sent to the browser. The value 0 means "until the browser is
closed." Defaults to 0.

Also, I thought you could use ini_set to change your php.ini configuration
for your current script.

But I could be wrong... Did I miss read the manual?


************************

This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*************************

--- End Message ---
--- Begin Message ---
> Also, I thought you could use ini_set to change your php.ini 
configuration
> for your current script.
> 
> But I could be wrong... Did I miss read the manual?

ini_set() can be used to change *some* settings. Some items that are 
configured in php.ini come into play before the script is parsed, and so 
ini_set() can't affect those.

Kirk

--- End Message ---
--- Begin Message ---
Hi,

on http://www.php.net/manual/en/features.commandline.php is writen:
STDERR - An already opened stream to stderr. This saves opening it with:
<?php
$stderr = fopen('php://stderr', 'w');
?>


But this does not work:
#! /usr/local/bin/php505 -q
<?php
fwrite(STDERR, "error!\n");
?>


This does work:
#! /usr/local/bin/php505 -q
<?php
define('STDERR', fopen('php://stderr', 'w'));
fwrite(STDERR, "error!\n");
?>


Is the manual wrong or does php 5.0.5 have change this property ?

Thanks

--- End Message ---
--- Begin Message ---
What is a good way to capture errors that occur.  I've tried the
following code in development, but it still spits out an error (Parse
error: syntax error, unexpected '}', expecting ',' or ';' in
X:\xxxx\xxxx\xxxx.php on line 7)

<?
// error handling test

try{
 $test = 1;
 echo $test1
}
catch (Exception $e) {
print "Exception caught\n";
}
?>

Thanks.

--- End Message ---
--- Begin Message ---
* Chuck Brockman <[EMAIL PROTECTED]>:
> What is a good way to capture errors that occur.  I've tried the
> following code in development, but it still spits out an error (Parse
> error: syntax error, unexpected '}', expecting ',' or ';' in
> X:\xxxx\xxxx\xxxx.php on line 7)
>
> <?
> // error handling test
>
> try{
>  $test = 1;
>  echo $test1

You're missing a semicolon at the end of the above line.

> }
> catch (Exception $e) {
> print "Exception caught\n";
> }
> ?>


-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

--- End Message ---
--- Begin Message ---
Hello Chuck
On 9/9/05, Chuck Brockman <[EMAIL PROTECTED]> wrote:
> What is a good way to capture errors that occur.  I've tried the
> following code in development, but it still spits out an error (Parse
> error: syntax error, unexpected '}', expecting ',' or ';' in
> X:\xxxx\xxxx\xxxx.php on line 7)
>
> <?
> // error handling test
>
> try{
>  $test = 1;
>  echo $test1
> }

Ooppsss
You're missing a ;

yoy might:
echo $test1;
}

Good luck
--
Pablo M. Rivas. http://www.pmrivas.com http://www.r3soft.com.ar
-----------------------------------------------------------

--- End Message ---
--- Begin Message ---
"Gustav Wiberg" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> How large can a string be in a cookie? (the value-parameter)

If you need (or want) a lot of data stored in cookies, I recommend doing the 
following:
store a single cookie with a unique id (something like 
"CookieID=ajhciuy978kjn"), then use this CookieID as a key into a database 
table, where you can store unlimited data for each browser.  I've done this, 
and it works very nicely.

Just, be careful about preventing cookie theft, if anything important is 
stored.

DanB

--- End Message ---
--- Begin Message --- I'm pretty sure the maximum size of a cookie is just under 4K. That would include variable names and their values.

But if you are getting close to the 4k limit, you probably should rethink your setup. As DanB said, store the info on the server, either in a database or in a session.


On Sep 9, 2005, at 10:37 AM, Dan Baker wrote:

"Gustav Wiberg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

How large can a string be in a cookie? (the value-parameter)


If you need (or want) a lot of data stored in cookies, I recommend doing the
following:
store a single cookie with a unique id (something like
"CookieID=ajhciuy978kjn"), then use this CookieID as a key into a database table, where you can store unlimited data for each browser. I've done this,
and it works very nicely.

Just, be careful about preventing cookie theft, if anything important is
stored.

DanB

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--- End Message ---
--- Begin Message ---
Hi,

Is it possible to encrypt files that are being uploaded via the 
move_uploaded_file() method?

Thanks for your advice 

--- End Message ---
--- Begin Message ---
>  I'm not a Wiki expert, but have been using TikiWiki for a while and
> very much like it.  It does everything you say with the possible
> exception of CSS.  It may very well support CSS, I just don't need it so
> haven't investigated.  It also allows for the use of templates that can
> be applied globally or by each user (these may be the CSS bit, again, I
> just haven't played).
> 
> User logins can be pre-assigned or user driven so you can control who
> does what.
> 
> I think you can turn on/off the CamelCase feature.
> 
> Doug
> 
> 
> -----Original Message-----
> From: Murray @ PlanetThoughtful [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 08, 2005 2:03 AM
> To: [email protected]
> Subject: PHP wiki recommendations
> 
> Hi All,
> 
> I want to add a wiki to my blog site to help create a knowledgebase of
> the characters, localities, stories I write to make it easier for new
> visitors to delve into the areas that interest them.
> 
> I've been experimenting with a couple of different wiki packages, but am
> always interested in others' thoughts and recommendations.
> 
> In particular, I've looked at MediaWiki and PmWiki. Of the two, I like
> MediaWiki's 'completeness', but it's also quite slow and doesn't strike
> me as being particularly (or easily?) customizable. PmWiki is probably
> my current candidate, but again I'd like to make sure I'm not missing a
> more obvious choice.
> 
> My shopping list for the ideal wiki application is:
> 
> - wiki entries preferably stored in MySQL tables. I'm not adamant about
> this (eg PmWiki uses files rather than a db backend), but it would suit
> my purposes better to be able to draw from the wiki tables from the
> front page of my blog to show lists of recently added and recently
> updated wiki entries
> 
> - non-reliance on CamelCase wiki links. Many of my characters etc use
> joined CamelCase names (eg KillFork and DangerSpoon), and to avoid
> confusion I'd rather explicitly define links to wiki content
> 
> - ability to categorize wiki entries
> 
> - ability to compare history of wiki edits and easily reinstate older
> edits if wiki pages get 'graffiti'd'
> 
> - ability to allow others to edit / create wiki entries, thru a user id
> / password system, so that regulars who would like to participate can do
> so
> 
> - ability to customize presentation of wiki pages, presumably through
> CSS etc, so that I can maintain the 'look and feel' of my blog thru the
> wiki content
> 
> - PHP based, though my host does run Perl, so if the killer wiki app is
> a Perl-based one, I'm sure I can muddle thru implementing it
> 
> If anyone has any recommendations for other wiki applications I should
> look at before making a decision, I'd love to hear from you!

Hi Doug,

Thanks for the recommendation -- I did take a brief glance at TikiWiki, but
my original impression was that it was too CMS-heavy for my needs.

Given your recommendation, though, I'll take another look at it, and will
probably download it and play around with it on my local machine.

If anyone else has any other recommendations, I'm still very open to
suggestions!

Much warmth,

Murray
---
"Lost in thought..."
http://www.planetthoughtful.org

--- End Message ---
--- Begin Message --- I've encountered this error before. What I did was go to http://ftp.emini.dk/pub/php/win32/mcrypt/ and downloaded version 2.5.6 or greater of libmcrypt. I add it in the ext directory. I restarted apache 2.

Hi,

  I have a strange behaviour. After following all the suggested installation
procedures for php5 and apache2, when I restart apache I get a warning
window saying "PHP Startup: Unable to load dynamic library
'C:\php\ext\php_mcrypt.dll' - The specified module could not be found". I
get this for 6-7 modules.

But, the module DOES EXITS at that address. Please advise. Thanks,



Cristian

--- End Message ---
--- Begin Message ---
In case anyone wants to get a neat Pocket PHP Reference and help contribute
to the Red Cross fund for Hurricane Katrina relief:

http://www.phparch.com/rcrs

Thanks!


Marco

--- End Message ---
--- Begin Message ---
If it simply for searching keywords and/or CV's, then wvWare will
probably do the job fine. I would suggest you retain the documents in
their original format however, so that the formatting and certain
elements that wvWare can't handle will remain when the CV is manually
viewed.



On 9/9/05, Shafiq Rehman <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Thanx to all of you for excellent suggestions. I am using Linux as OS and I
> want to parse the CVs and place in db for fulltext search. I think wvWare
> will work a lot for my case.
> 
> Thanx again.
> 
> On 9/8/05, Ben Ramsey <[EMAIL PROTECTED]> wrote:
> >
> > zzapper wrote:
> > >>On Wed, September 7, 2005 7:39 am, Shafiq Rehman wrote:
> > >>
> > >>>Hello,
> > >>>
> > >>>I want to parse the .doc files with PHP. Anybody have some idea
> > regarding
> > >>>this problem.
> > >>>
> > >>>Your help regarding this matter is really appreciated
> > >>>
> > >
> > > Also consider antiword
> > >
> >
> > And also:
> >
> > wvWare: http://wvware.sourceforge.net/
> > Word2x: http://word2x.sourceforge.net/
> >
> > --
> > Ben Ramsey
> > http://benramsey.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> --
> *** phpgurru.com <http://phpgurru.com> [A php resource provider] ***
> 
> \\\|///
> \\ - - //
> ( @ @ ) PHP is too logical for my brain
> +---oOOo-(_)-oOOo------------------------------------------+
> | Mian Shafiq ur Rehman
> | phpgurru.com <http://phpgurru.com> [A php resource provider]
> | 107 B, New Town, Multan Road
> | Lahore Pakistan
> |
> | Mobile: 0300 423 9385
> |
> | ooo0 http://www.phpgurru.com
> | ( ) 0ooo E-Mail: [EMAIL PROTECTED]
> +---\ (----( )------------------------------------------+
> \_) ) /
> (_/
> 
>

--- End Message ---
--- Begin Message ---
Hi everybody.

I use a Debugger-Class to collect debugging information (now that was a 
hard guess, wasn't it..) during script runtime. In order to collect 
everything there is to collect, I instantiate a debugger object right at 
the start of my scripts and unload this object at the very end of my 
shutdown function.

Unfortunately as of PHP 5.0.5 objects get unloaded before the shutdown 
function is even called and as Jani Taskinen pointed out [1] this 
behaviour is very much intended and won't get changed (whatever the 
reason for this decision might be..) with all related bugs marked Bogus 
[2] or a documentation issue [3].

I have to admit that it wouldn't be much of a deal to store the debugging 
information outside the object but I like the approach I took and fear 
that I might run into other problems with objects getting destroyed 
before others which depend on the previous ones, so my question is 
(tadaa): Is there a way to sort of "customize" the order in which 
objects are unloaded during the shutdown procedure? I have to stress 
that defining the classes and/or instantiate the objects in a specific 
order is _not_ an option.

Any hint would be appreciated. Thanks in advance,
Niels.


[1] http://marc.theaimsgroup.com/?l=php-dev&m=112556389406774
[2] http://bugs.php.net/bug.php?id=34377
[3] http://bugs.php.net/bug.php?id=33772

--- End Message ---
--- Begin Message ---
Niels Ganser wrote:
I use a Debugger-Class to collect debugging information (now that was a hard guess, wasn't it..) during script runtime. In order to collect everything there is to collect, I instantiate a debugger object right at the start of my scripts and unload this object at the very end of my shutdown function.

Unfortunately as of PHP 5.0.5 objects get unloaded before the shutdown function is even called and as Jani Taskinen pointed out [1] this behaviour is very much intended and won't get changed (whatever the reason for this decision might be..) with all related bugs marked Bogus [2] or a documentation issue [3].

I have to admit that it wouldn't be much of a deal to store the debugging information outside the object but I like the approach I took and fear that I might run into other problems with objects getting destroyed before others which depend on the previous ones, so my question is (tadaa): Is there a way to sort of "customize" the order in which objects are unloaded during the shutdown procedure? I have to stress that defining the classes and/or instantiate the objects in a specific order is _not_ an option.

[1] http://marc.theaimsgroup.com/?l=php-dev&m=112556389406774
[2] http://bugs.php.net/bug.php?id=34377
[3] http://bugs.php.net/bug.php?id=33772

This is a really nasty bug, which has been preventing me from upgrading to PHP 5.0.5. Unfortunately it doesn't look like it will be fixed any time soon. The most descriptive bug report is [3], bug ID 33772, above.

The only workaround I've come up with (although pretty ugly) is to use an auto_append_file [1] that executes the necessary destructors in the order you want them. This file will be executed before PHP starts destroying objects.

HTH

[1] http://php.net/ini.core#ini.auto-append-file
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http://tinyurl.com/7oa5s

--- End Message ---
--- Begin Message ---
Hello,


Yesterday OCI8 extension have been updated in the PHP CVS (HEAD only).
This updated driver resolves a large amount of bug reports and adds
some improvements both functionality and performance, and much better
documentation (see here: http://php.net/oci8).

A lot of time has been invested in updating this driver including
help from Wez Furlong and the OCI team which gave a lot of feedback
on how to do things the best and most efficient way.

I have just tried this version and at least one of two problems that I had with version 1.0 was solved.

The problem that seems solved used to crash PHP if ORACLE_HOME and ORACLE_SID were not set before running PHP. I have tested it with Metabase OCI driver class and previously have documented the problem in the OCI driver notes of Metabase documentation.

http://www.meta-language.net/metabase.html#232.2.4

Metabase uses PHP putenv() function to set these variables but with OCI8 1.0 extension not setting these variables before running PHP was causing segmentation or the error ORA-03117: two-task save area overflow.

Anyway, now that no longer seems to be a problem, as in past versions prior to PECL OCI8 1.0 extension.


The other problem that I am still having is about host_os variable in the configure script being set to linux but the configure script generated by phpize expects linux-gnu. The consequence of this is that even when you use --enable-shared as configure argument makes it always build as static.

I use SuSE Linux Professional 9.0 with PHP 4.3.11-1 RPM archives provided in SuSE FTP site here:

ftp://ftp.suse.com/pub/projects/apache/mod_php4/9.0-i386/

To solve the problem, I had to hack the configure script generated by phpize adding a few case options to consider linux as host_os alias of linux-gnu .

Using that hack the extension builds and installs properly, passing 15 out of 16 tests of Metabase driver class test suite. The only test that fails is due to a known "feature" of Oracle of storing NULL when you mean to store an empty string on a VARCHAR fields. So, all works well as expected. Congratulations! ;-)

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--- End Message ---

Reply via email to